Find the answer to your Linux question:
Results 1 to 2 of 2
When i try to compile a simple c++ program with the use of the iostream and string header files i get the following error: (I had to cut the errors ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    9

    g++ problem with Suse 9.1 Professional

    When i try to compile a simple c++ program with the use of the iostream and string header files i get the following error: (I had to cut the errors due to character limitations on this forum. I am using Suse 9.1 Professional.)

    Code:
    rscheckler@linux:~/Desktop> g++ Test.cpp
    In file included from /usr/include/g++/i586-suse-linux/bits/c++config.h:35,
    from /usr/include/g++/iostream:44,
    from Test.cpp:1:
    /usr/include/g++/i586-suse-linux/bits/os_defines.h:39:22: features.h: No such fi le or directory
    /usr/include/g++/i586-suse-linux/bits/os_defines.h:46:23: gnu/types.h: No such f ile or directory
    In file included from /usr/include/g++/i586-suse-linux/bits/c++config.h:35,
    from /usr/include/g++/iostream:44,
    from Test.cpp:1:
    /usr/include/g++/i586-suse-linux/bits/os_defines.h:47: error: syntax error
    before `;' token
    In file included from /usr/include/g++/i586-suse-linux/bits/c++locale.h:41,
    from /usr/include/g++/iosfwd:46,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/clocale:49:20: locale.h: No such file or directory
    In file included from /usr/include/g++/i586-suse-linux/bits/c++locale.h:41,
    from /usr/include/g++/iosfwd:46,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/clocale:57: error: `lconv' not declared
    /usr/include/g++/clocale:58: error: `setlocale' not declared
    /usr/include/g++/clocale:59: error: `localeconv' not declared
    In file included from /usr/include/g++/iosfwd:46,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/i586-suse-linux/bits/c++locale.h:42:47: langinfo.h: No such fil e or directory
    /usr/include/g++/i586-suse-linux/bits/c++locale.h:43:68: iconv.h: No such file o r directory
    /usr/include/g++/i586-suse-linux/bits/c++locale.h:44:48: libintl.h: No such file or directory
    In file included from /usr/include/g++/iosfwd:46,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/i586-suse-linux/bits/c++locale.h:59: error: syntax error
    before `;' token
    /usr/include/g++/i586-suse-linux/bits/c++locale.h:73: error: syntax error
    before `&' token
    In file included from /usr/include/g++/iosfwd:47,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/cctype:49:19: ctype.h: No such file or directory
    In file included from /usr/include/g++/iosfwd:47,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/cctype:68: error: `isalnum' not declared
    /usr/include/g++/cctype:69: error: `isalpha' not declared
    /usr/include/g++/cctype:70: error: `iscntrl' not declared
    /usr/include/g++/cctype:71: error: `isdigit' not declared
    /usr/include/g++/cctype:72: error: `isgraph' not declared
    /usr/include/g++/cctype:73: error: `islower' not declared
    /usr/include/g++/cctype:74: error: `isprint' not declared
    /usr/include/g++/cctype:75: error: `ispunct' not declared
    /usr/include/g++/cctype:76: error: `isspace' not declared
    /usr/include/g++/cctype:77: error: `isupper' not declared
    /usr/include/g++/cctype:78: error: `isxdigit' not declared
    /usr/include/g++/cctype:79: error: `tolower' not declared
    /usr/include/g++/cctype:80: error: `toupper' not declared
    In file included from /usr/include/g++/i586-suse-linux/bits/c++io.h:35,
    from /usr/include/g++/bits/fpos.h:44,
    from /usr/include/g++/iosfwd:49,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/cstdio:52:19: stdio.h: No such file or directory
    In file included from /usr/include/g++/i586-suse-linux/bits/c++io.h:35,
    from /usr/include/g++/bits/fpos.h:44,
    from /usr/include/g++/iosfwd:49,
    from /usr/include/g++/ios:44,
    from /usr/include/g++/ostream:45,
    from /usr/include/g++/iostream:45,
    from Test.cpp:1:
    /usr/include/g++/cstdio:99: error: `FILE' not declared
    /usr/include/g++/cstdio:100: error: `fpos_t' not declared
    /usr/include/g++/cstdio:102: error: `clearerr' not declared
    /usr/include/g++/cstdio:103: error: `fclose' not declared
    /usr/include/g++/cstdio:104: error: `feof' not declared
    /usr/include/g++/cstdio:105: error: `ferror' not declared
    /usr/include/g++/cstdio:106: error: `fflush' not declared
    /usr/include/g++/cstdio:107: error: `fgetc' not declared
    /usr/include/g++/cstdio:108: error: `fgetpos' not declared
    /usr/include/g++/cstdio:109: error: `fgets' not declared
    /usr/include/g++/cstdio:110: error: `fopen' not declared
    /usr/include/g++/cstdio:111: error: `fprintf' not declared
    /usr/include/g++/cstdio:112: error: `fputc' not declared
    /usr/include/g++/cstdio:113: error: `fputs' not declared
    /usr/include/g++/cstdio:114: error: `fread' not declared
    /usr/include/g++/cstdio:115: error: `freopen' not declared
    /usr/include/g++/cstdio:116: error: `fscanf' not declared
    /usr/include/g++/cstdio:117: error: `fseek' not declared
    /usr/include/g++/cstdio:118: error: `fsetpos' not declared
    /usr/include/g++/cstdio:119: error: `ftell' not declared
    /usr/include/g++/cstdio:120: error: `fwrite' not declared
    /usr/include/g++/cstdio:121: error: `getc' not declared
    /usr/include/g++/cstdio:122: error: `getchar' not declared
    /usr/include/g++/cstdio:123: error: `gets' not declared
    /usr/include/g++/cstdio:124: error: `perror' not declared
    /usr/include/g++/cstdio:125: error: `printf' not declared
    /usr/include/g++/cstdio:126: error: `putc' not declared
    /usr/include/g++/cstdio:127: error: `putchar' not declared
    /usr/include/g++/cstdio:128: error: `puts' not declared
    /usr/include/g++/cstdio:129: error: `remove' not declared
    /usr/include/g++/cstdio:130: error: `rename' not declared
    /usr/include/g++/cstdio:131: error: `rewind' not declared
    /usr/include/g++/cstdio:132: error: `scanf' not declared
    /usr/include/g++/cstdio:133: error: `setbuf' not declared
    /usr/include/g++/cstdio:134: error: `setvbuf' not declared
    /usr/include/g++/cstdio:135: error: `sprintf' not declared
    /usr/include/g++/cstdio:136: error: `sscanf' not declared
    /usr/include/g++/cstdio:137: error: `tmpfile' not declared
    /usr/include/g++/cstdio:138: error: `tmpnam' not declared
    /usr/include/g++/cstdio:139: error: `ungetc' not declared
    /usr/include/g++/cstdio:140: error: `vfprintf' not declared
    /usr/include/g++/cstdio:141: error: `vprintf' not declared
    /usr/include/g++/cstdio:142: error: `vsprintf' not declared
    /usr/include/g++/cstdio:167: error: `snprintf' not declared
    /usr/include/g++/cstdio:168: error: `vfscanf' not declared
    /usr/include/g++/cstdio:169: error: `vscanf' not declared
    /usr/include/g++/cstdio:170: error: `vsnprintf' not declared
    /usr/include/g++/cstdio:171: error: `vsscanf' not declared
    /usr/include/g++/cstdio:177: error: `snprintf' not declared
    /usr/include/g++/cstdio:178: error: `vfscanf' not declared
    /usr/include/g++/cstdio:179: error: `vscanf' not declared
    /usr/include/g++/cstdio:180: error: `vsnprintf' not declared
    /usr/include/g++/cstdio:181: error: `vsscanf' not declared
    Any Ideas as to whats wrong????
    Last edited by techieMoe; 10-19-2006 at 08:39 PM.

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    I have moved your post to the Linux Programming and Scripting section of the forum. It can be found here:

    http://www.linuxforums.org/forum/lin...g-compile.html

    Please do not post it again.
    Registered Linux user #270181
    TechieMoe's Tech Rants

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...