ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
i am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. Can somebody help?
Here:
Code:
Making all in utils
make[3]: Entering directory `/home/user/systemc2.2/objdir/src/sysc/utils'
g++ -I. -I. -I../../../../src/sysc/utils -I../../../../src -I:/usr/include/:/usr/include/c++/3.3/ -Wall -DSC_INCLUDE_FX -O3 -c -o sc_utils_ids.o `test -f '../../../../src/sysc/utils/sc_utils_ids.cpp' || echo '../../../../src/sysc/utils/'`../../../../src/sysc/utils/sc_utils_ids.cpp
In file included from /usr/include/c++/3.3/cstring:49,
from /usr/include/c++/3.3/bits/char_traits.h:45,
from /usr/include/c++/3.3/string:47,
from ../../../../src/sysc/utils/sc_report.h:54,
from ../../../../src/sysc/kernel/sc_kernel_ids.h:56,
from ../../../../src/sysc/utils/sc_utils_ids.cpp:64:
/usr/include/c++/3.3/cstddef:52: error: `ptrdiff_t' not declared
/usr/include/c++/3.3/cstddef:53: error: `size_t' not declared
In file included from /usr/include/c++/3.3/bits/char_traits.h:45,
from /usr/include/c++/3.3/string:47,
from ../../../../src/sysc/utils/sc_report.h:54,
from ../../../../src/sysc/kernel/sc_kernel_ids.h:56,
from ../../../../src/sysc/utils/sc_utils_ids.cpp:64:
/usr/include/c++/3.3/cstring:79: error: `memcpy' not declared
/usr/include/c++/3.3/cstring:80: error: `memmove' not declared
/usr/include/c++/3.3/cstring:81: error: `strcpy' not declared
/usr/include/c++/3.3/cstring:82: error: `strncpy' not declared
/usr/include/c++/3.3/cstring:83: error: `strcat' not declared
/usr/include/c++/3.3/cstring:84: error: `strncat' not declared
/usr/include/c++/3.3/cstring:85: error: `memcmp' not declared
/usr/include/c++/3.3/cstring:86: error: `strcmp' not declared
/usr/include/c++/3.3/cstring:87: error: `strcoll' not declared
/usr/include/c++/3.3/cstring:88: error: `strncmp' not declared
/usr/include/c++/3.3/cstring:89: error: `strxfrm' not declared
/usr/include/c++/3.3/cstring:90: error: `strcspn' not declared
/usr/include/c++/3.3/cstring:91: error: `strspn' not declared
/usr/include/c++/3.3/cstring:92: error: `strtok' not declared
/usr/include/c++/3.3/cstring:93: error: `memset' not declared
/usr/include/c++/3.3/cstring:94: error: `strerror' not declared
/usr/include/c++/3.3/cstring:95: error: `strlen' not declared
/usr/include/c++/3.3/cstring:97: error: `memchr' not declared
/usr/include/c++/3.3/cstring: In function `void* sc_core::std::memchr(void*,
int, unsigned int)':
/usr/include/c++/3.3/cstring:101: error: invalid conversion from `const void*'
to `void*'
/usr/include/c++/3.3/cstring: At global scope:
/usr/include/c++/3.3/cstring:103: error: `strchr' not declared
/usr/include/c++/3.3/cstring:109: error: `strpbrk' not declared
/usr/include/c++/3.3/cstring:115: error: `strrchr' not declared
/usr/include/c++/3.3/cstring:121: error: `strstr' not declared
In file included from /usr/include/c++/3.3/i486-linux-gnu/bits/c++io.h:35,
from /usr/include/c++/3.3/bits/fpos.h:44,
from /usr/include/c++/3.3/bits/char_traits.h:46,
from /usr/include/c++/3.3/string:47,
from ../../../../src/sysc/utils/sc_report.h:54,
from ../../../../src/sysc/kernel/sc_kernel_ids.h:56,
from ../../../../src/sysc/utils/sc_utils_ids.cpp:64:
/usr/include/c++/3.3/cstdio:99: error: `FILE' not declared
/usr/include/c++/3.3/cstdio:100: error: `fpos_t' not declared
/usr/include/c++/3.3/cstdio:102: error: `clearerr' not declared
/usr/include/c++/3.3/cstdio:103: error: `fclose' not declared
/usr/include/c++/3.3/cstdio:104: error: `feof' not declared
/usr/include/c++/3.3/cstdio:105: error: `ferror' not declared
/usr/include/c++/3.3/cstdio:106: error: `fflush' not declared
/usr/include/c++/3.3/cstdio:107: error: `fgetc' not declared
/usr/include/c++/3.3/cstdio:108: error: `fgetpos' not declared
/usr/include/c++/3.3/cstdio:109: error: `fgets' not declared
/usr/include/c++/3.3/cstdio:110: error: `fopen' not declared
/usr/include/c++/3.3/cstdio:111: error: `fprintf' not declared
/usr/include/c++/3.3/cstdio:112: error: `fputc' not declared
/usr/include/c++/3.3/cstdio:113: error: `fputs' not declared
/usr/include/c++/3.3/cstdio:114: error: `fread' not declared
/usr/include/c++/3.3/cstdio:115: error: `freopen' not declared
/usr/include/c++/3.3/cstdio:116: error: `fscanf' not declared
/usr/include/c++/3.3/cstdio:117: error: `fseek' not declared
/usr/include/c++/3.3/cstdio:118: error: `fsetpos' not declared
/usr/include/c++/3.3/cstdio:119: error: `ftell' not declared
/usr/include/c++/3.3/cstdio:120: error: `fwrite' not declared
/usr/include/c++/3.3/cstdio:121: error: `getc' not declared
/usr/include/c++/3.3/cstdio:122: error: `getchar' not declared
/usr/include/c++/3.3/cstdio:123: error: `gets' not declared
/usr/include/c++/3.3/cstdio:124: error: `perror' not declared
/usr/include/c++/3.3/cstdio:125: error: `printf' not declared
/usr/include/c++/3.3/cstdio:126: error: `putc' not declared
/usr/include/c++/3.3/cstdio:127: error: `putchar' not declared
/usr/include/c++/3.3/cstdio:128: error: `puts' not declared
/usr/include/c++/3.3/cstdio:129: error: `remove' not declared
/usr/include/c++/3.3/cstdio:130: error: `rename' not declared
/usr/include/c++/3.3/cstdio:131: error: `rewind' not declared
/usr/include/c++/3.3/cstdio:132: error: `scanf' not declared
/usr/include/c++/3.3/cstdio:133: error: `setbuf' not declared
/usr/include/c++/3.3/cstdio:134: error: `setvbuf' not declared
/usr/include/c++/3.3/cstdio:135: error: `sprintf' not declared
/usr/include/c++/3.3/cstdio:136: error: `sscanf' not declared
/usr/include/c++/3.3/cstdio:137: error: `tmpfile' not declared
/usr/include/c++/3.3/cstdio:138: error: `tmpnam' not declared
/usr/include/c++/3.3/cstdio:139: error: `ungetc' not declared
/usr/include/c++/3.3/cstdio:140: error: `vfprintf' not declared
/usr/include/c++/3.3/cstdio:141: error: `vprintf' not declared
/usr/include/c++/3.3/cstdio:142: error: `vsprintf' not declared
/usr/include/c++/3.3/cstdio:167: error: `snprintf' not declared
/usr/include/c++/3.3/cstdio:168: error: `vfscanf' not declared
/usr/include/c++/3.3/cstdio:169: error: `vscanf' not declared
/usr/include/c++/3.3/cstdio:170: error: `vsnprintf' not declared
/usr/include/c++/3.3/cstdio:171: error: `vsscanf' not declared
/usr/include/c++/3.3/cstdio:177: error: `snprintf' not declared
/usr/include/c++/3.3/cstdio:178: error: `vfscanf' not declared
/usr/include/c++/3.3/cstdio:179: error: `vscanf' not declared
/usr/include/c++/3.3/cstdio:180: error: `vsnprintf' not declared
/usr/include/c++/3.3/cstdio:181: error: `vsscanf' not declared
In file included from /usr/include/c++/3.3/cwchar:51,
from /usr/include/c++/3.3/bits/fpos.h:45,
from /usr/include/c++/3.3/bits/char_traits.h:46,
from /usr/include/c++/3.3/string:47,
from ../../../../src/sysc/utils/sc_report.h:54,
from ../../../../src/sysc/kernel/sc_kernel_ids.h:56,
from ../../../../src/sysc/utils/sc_utils_ids.cpp:64:
/usr/include/c++/3.3/ctime:66: error: `clock_t' not declared
/usr/include/c++/3.3/ctime:67: error: `time_t' not declared
/usr/include/c++/3.3/ctime:68: error: `tm' not declared
/usr/include/c++/3.3/ctime:70: error: `clock' not declared
/usr/include/c++/3.3/ctime:71: error: `difftime' not declared
/usr/include/c++/3.3/ctime:72: error: `mktime' not declared
/usr/include/c++/3.3/ctime:73: error: `time' not declared
/usr/include/c++/3.3/ctime:74: error: `asctime' not declared
/usr/include/c++/3.3/ctime:75: error: `ctime' not declared
/usr/include/c++/3.3/ctime:76: error: `gmtime' not declared
/usr/include/c++/3.3/ctime:77: error: `localtime' not declared
/usr/include/c++/3.3/ctime:78: error: `strftime' not declared
In file included from /usr/include/c++/3.3/bits/fpos.h:45,
from /usr/include/c++/3.3/bits/char_traits.h:46,
from /usr/include/c++/3.3/string:47,
from ../../../../src/sysc/utils/sc_report.h:54,
from ../../../../src/sysc/kernel/sc_kernel_ids.h:56,
from ../../../../src/sysc/utils/sc_utils_ids.cpp:64:
/usr/include/c++/3.3/cwchar:71: error: `mbstate_t' not declared
/usr/include/c++/3.3/cwchar:135: error: `wint_t' not declared
/usr/include/c++/3.3/cwchar:137: error: `btowc' not declared
/usr/include/c++/3.3/cwchar:138: error: `fgetwc' not declared
/usr/include/c++/3.3/cwchar:139: error: `fgetws' not declared
/usr/include/c++/3.3/cwchar:140: error: `fputwc' not declared
/usr/include/c++/3.3/cwchar:141: error: `fputws' not declared
/usr/include/c++/3.3/cwchar:142: error: `fwide' not declared
/usr/include/c++/3.3/cwchar:143: error: `fwprintf' not declared
/usr/include/c++/3.3/cwchar:144: error: `fwscanf' not declared
/usr/include/c++/3.3/cwchar:145: error: `getwc' not declared
/usr/include/c++/3.3/cwchar:146: error: `getwchar' not declared
/usr/include/c++/3.3/cwchar:147: error: `mbrlen' not declared
/usr/include/c++/3.3/cwchar:148: error: `mbrtowc' not declared
....
Last edited by kpachopoulos; 07-16-2009 at 08:52 AM.
Or an older version ? ( Since you are using g++-3.3 ).
I read 'systemc2.2/' for your version, the version in my
archive makes a folder named "systemc-2.20/".
Version 2.20 will probably compile on any newer Linux
with e.g. g++-4.1.x with no errors.
Please specify the "systemc" used and a link to
where you got it.
.....
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
'systemc-2.20' is picky with compilers.
'g++-3.2.3', slack 9.1 works. But 3.3.6, slack 10.2 doesn't.
4.2.3 OK : Sabayon / 'Gentoo 4.2.3 p1.0', and slack 12.1 .
All g++-4.1.x : OK.
4.3.x : no luck.
'g++-3.2.3', slack 9.1 works. But 3.3.6, slack 10.2 doesn't.
4.2.3 OK : Sabayon / 'Gentoo 4.2.3 p1.0', and slack 12.1 .
All g++-4.1.x : OK.
4.3.x : no luck.
.....
Rather, apparently written not according to "C"/C++ standards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.