|
[Sponsors] |
December 25, 2007, 18:27 |
hi, i am a brand new user of o
|
#1 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi, i am a brand new user of openFoam.i want to check if my compiler is working well,and try the "hello world.c".but i end up with errors.
and these are the steps testing the compiler 1. 'which g++' -> /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/g++ 2. 'g++ -v' -> Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr/tmp/gcc-4.2.1 --exec-prefix=/usr/tmp/gcc-4.2.1 --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-checking --with-system-zlib Thread model: posix gcc version 4.2.1 3. With the compilation of 'HelloWorld.C' appears (gcc HelloWorld.C),and i get errors as follows /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:138: error: '::tmpfile' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:139: error: '::tmpnam' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:140: error: '::ungetc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:141: error: '::vfprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:142: error: '::vprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:143: error: '::vsprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:170: error: '::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:171: error: '::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:172: error: '::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:173: error: '::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:174: error: '::vsscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:49, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:59: error: '::lconv' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:60: error: '::setlocale' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:61: error: '::localeconv' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:69: error: '__locale_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:76: error: expected ',' or '...' before '&' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h: In function 'int std::__convert_from_v(int)': /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'LC_ALL' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:85: error: 'strlen' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:86: error: 'strcpy' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:87: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:91: error: '__fmt' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: 'vsnprintf' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__out' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__size' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:104: error: 'setlocale' is not a member of 'std' In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:114, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h: At global scope: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:46: error: 'pthread_key_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:47: error: 'pthread_once_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:48: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:49: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: 'pthread_once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: 'pthread_getspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: 'pthread_setspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: 'pthread_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: 'pthread_cancel' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: 'pthread_mutex_lock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: 'pthread_mutex_trylock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: 'pthread_mutex_unlock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: 'pthread_mutex_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: 'pthread_key_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: 'pthread_key_delete' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: 'pthread_mutexattr_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: 'pthread_mutexattr_settype' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: 'pthread_mutexattr_destroy' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'func' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:573: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_create' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'key' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'dtor' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:582: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_delete' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:588: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_getspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:594: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_setspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: expected primary-expression before 'const' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:600: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_lock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:606: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_trylock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:615: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_unlock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:624: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_init_function' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:634: error: expected ',' or ';' before '{' token In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:122: error: expected declaration before end of line as it is the most common way of testing the compiler, so could anyone help me to handle this kind regards feng |
|
December 26, 2007, 03:21 |
If HelloWorld.C, is a C++ code
|
#2 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
If HelloWorld.C, is a C++ code (as the extension suggests), then you should use g++ to compile it, not gcc.
Dragos |
|
December 26, 2007, 05:38 |
hi,i use g++ to compile it, bu
|
#3 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi,i use g++ to compile it, but end up with a list of errors too.
/home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:84: error: '::strcat' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:85: error: '::strncat' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:86: error: '::memcmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:87: error: '::strcmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:88: error: '::strcoll' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:89: error: '::strncmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:90: error: '::strxfrm' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:91: error: '::strcspn' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:92: error: '::strspn' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:93: error: '::strtok' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:94: error: '::memset' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:95: error: '::strerror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:96: error: '::strlen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:98: error: '::memchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring: In function 'void* std::memchr(void*, int, size_t)': /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:102: error: invalid conversion from 'const void*' to 'void*' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:102: error: initializing argument 1 of 'void* std::memchr(void*, int, size_t)' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring: At global scope: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:104: error: '::strchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:110: error: '::strpbrk' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:116: error: '::strrchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:122: error: '::strstr' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:48, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:100: error: '::FILE' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:101: error: '::fpos_t' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:103: error: '::clearerr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:104: error: '::fclose' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:105: error: '::feof' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:106: error: '::ferror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:107: error: '::fflush' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:108: error: '::fgetc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:109: error: '::fgetpos' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:110: error: '::fgets' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:111: error: '::fopen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:112: error: '::fprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:113: error: '::fputc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:114: error: '::fputs' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:115: error: '::fread' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:116: error: '::freopen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:117: error: '::fscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:118: error: '::fseek' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:119: error: '::fsetpos' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:120: error: '::ftell' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:121: error: '::fwrite' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:122: error: '::getc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:123: error: '::getchar' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:124: error: '::gets' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:125: error: '::perror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:126: error: '::printf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:127: error: '::putc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:128: error: '::putchar' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:129: error: '::puts' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:130: error: '::remove' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:131: error: '::rename' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:132: error: '::rewind' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:133: error: '::scanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:134: error: '::setbuf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:135: error: '::setvbuf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:136: error: '::sprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:137: error: '::sscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:138: error: '::tmpfile' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:139: error: '::tmpnam' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:140: error: '::ungetc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:141: error: '::vfprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:142: error: '::vprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:143: error: '::vsprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:170: error: '::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:171: error: '::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:172: error: '::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:173: error: '::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:174: error: '::vsscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:49, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:59: error: '::lconv' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:60: error: '::setlocale' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:61: error: '::localeconv' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:69: error: '__locale_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:76: error: expected ',' or '...' before '&' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h: In function 'int std::__convert_from_v(int)': /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'LC_ALL' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:85: error: 'strlen' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:86: error: 'strcpy' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:87: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:91: error: '__fmt' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: 'vsnprintf' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__out' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__size' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:104: error: 'setlocale' is not a member of 'std' In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:114, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h: At global scope: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:46: error: 'pthread_key_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:47: error: 'pthread_once_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:48: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:49: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: 'pthread_once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: 'pthread_getspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: 'pthread_setspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: 'pthread_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: 'pthread_cancel' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: 'pthread_mutex_lock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: 'pthread_mutex_trylock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: 'pthread_mutex_unlock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: 'pthread_mutex_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: 'pthread_key_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: 'pthread_key_delete' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: 'pthread_mutexattr_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: 'pthread_mutexattr_settype' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: 'pthread_mutexattr_destroy' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'func' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:573: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_create' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'key' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'dtor' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:582: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_delete' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:588: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_getspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:594: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_setspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: expected primary-expression before 'const' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:600: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_lock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:606: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_trylock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:615: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_unlock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:624: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_init_function' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:634: error: expected ',' or ';' before '{' token In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/backward/iostream.h:32, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:122: error: expected declaration before end of lin |
|
December 26, 2007, 10:03 |
Hm, could you please post the
|
#4 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hm, could you please post the source code?
Dragos |
|
December 26, 2007, 19:32 |
hi,
you are right,i made a
|
#5 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi,
you are right,i made a stupid mistake, i miss a ";" . i correct it and run it under Visual C 6.0, it is good.but when i run it under Linux using "g++ HelloWorld.C" again,i still got the same error c-linux-gnu/4.2.1/../../../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:80: error: '::memcpy' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:81: error: '::memmove' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:82: error: '::strcpy' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:83: error: '::strncpy' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:84: error: '::strcat' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:85: error: '::strncat' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:86: error: '::memcmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:87: error: '::strcmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:88: error: '::strcoll' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:89: error: '::strncmp' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:90: error: '::strxfrm' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:91: error: '::strcspn' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:92: error: '::strspn' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:93: error: '::strtok' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:94: error: '::memset' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:95: error: '::strerror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:96: error: '::strlen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:98: error: '::memchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring: In function 'void* std::memchr(void*, int, size_t)': /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:102: error: invalid conversion from 'const void*' to 'void*' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:102: error: initializing argument 1 of 'void* std::memchr(void*, int, size_t)' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring: At global scope: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:104: error: '::strchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:110: error: '::strpbrk' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:116: error: '::strrchr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstring:122: error: '::strstr' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:48, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:100: error: '::FILE' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:101: error: '::fpos_t' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:103: error: '::clearerr' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:104: error: '::fclose' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:105: error: '::feof' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:106: error: '::ferror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:107: error: '::fflush' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:108: error: '::fgetc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:109: error: '::fgetpos' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:110: error: '::fgets' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:111: error: '::fopen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:112: error: '::fprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:113: error: '::fputc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:114: error: '::fputs' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:115: error: '::fread' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:116: error: '::freopen' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:117: error: '::fscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:118: error: '::fseek' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:119: error: '::fsetpos' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:120: error: '::ftell' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:121: error: '::fwrite' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:122: error: '::getc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:123: error: '::getchar' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:124: error: '::gets' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:125: error: '::perror' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:126: error: '::printf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:127: error: '::putc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:128: error: '::putchar' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:129: error: '::puts' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:130: error: '::remove' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:131: error: '::rename' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:132: error: '::rewind' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:133: error: '::scanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:134: error: '::setbuf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:135: error: '::setvbuf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:136: error: '::sprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:137: error: '::sscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:138: error: '::tmpfile' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:139: error: '::tmpnam' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:140: error: '::ungetc' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:141: error: '::vfprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:142: error: '::vprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:143: error: '::vsprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:170: error: '::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:171: error: '::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:172: error: '::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:173: error: '::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:174: error: '::vsscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:49, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:59: error: '::lconv' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:60: error: '::setlocale' has not been declared /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/clocale:61: error: '::localeconv' has not been declared In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:69: error: '__locale_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:76: error: expected ',' or '...' before '&' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h: In function 'int std::__convert_from_v(int)': /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:84: error: 'LC_ALL' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:85: error: 'strlen' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:86: error: 'strcpy' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:87: error: 'setlocale' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:91: error: '__fmt' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: 'vsnprintf' is not a member of 'std' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__out' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:94: error: '__size' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++locale.h:104: error: 'setlocale' is not a member of 'std' In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:114, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h: At global scope: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:46: error: 'pthread_key_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:47: error: 'pthread_once_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:48: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:49: error: 'pthread_mutex_t' does not name a type /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: 'pthread_once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:92: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: 'pthread_getspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:93: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: 'pthread_setspecific' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:94: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: 'pthread_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:95: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: 'pthread_cancel' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:96: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: 'pthread_mutex_lock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:97: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: 'pthread_mutex_trylock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:98: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: 'pthread_mutex_unlock' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:99: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: 'pthread_mutex_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:100: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: 'pthread_key_create' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:103: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: 'pthread_key_delete' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:104: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: 'pthread_mutexattr_init' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:105: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: 'pthread_mutexattr_settype' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:106: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: 'pthread_mutexattr_destroy' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:107: error: invalid type in declaration before ';' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: '__gthread_once_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'once' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: 'func' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:572: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:573: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_create' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'key' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: 'dtor' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: expected primary-expression before 'void' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:581: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:582: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_delete' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:587: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:588: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_getspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:593: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:594: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_setspecific' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: '__gthread_key_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: expected primary-expression before 'const' /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:599: error: initializer expression list treated as compound expression /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:600: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_lock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:605: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:606: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_trylock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:614: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:615: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_unlock' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: '__gthread_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:623: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:624: error: expected ',' or ';' before '{' token /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_init_function' declared as an 'inline' variable /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: '__gthread_recursive_mutex_t' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:633: error: 'mutex' was not declared in this scope /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr-default.h:634: error: expected ',' or ';' before '{' token In file included from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c++io.h:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iosfwd:46, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ios:43, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/ostream:45, from /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/iostream:45, from HelloWorld.C:1: /home/fw407/OpenFOAM/linux/gcc-4.2.1/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/../. ./../../include/c++/4.2.1/i686-pc-linux-gnu/bits/gthr.h:122: error: expected declaration before end of line so i think my compiler is not working well,it seems that the compiler can not find out where all the variables,functions are defined .but i do not know how to fix it.could you give me some ideas? Kind regards feng |
|
December 27, 2007, 10:05 |
Fenq,
Post your source code
|
#6 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Fenq,
Post your source code instead. Martin |
|
December 27, 2007, 15:52 |
Feng,
I tested your source.
|
#7 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
Feng,
I tested your source. It compiles fine. The problem is elsewhere, probably in your compiler installation. Did you do make install during the compilation process? -DPS |
|
December 29, 2007, 20:14 |
hi
i think my compiler ins
|
#8 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi
i think my compiler installation is ok , i tried "g++ -v", and i got Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr/tmp/gcc-4.2.1 --exec-prefix=/usr/tmp/gcc-4.2.1 --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-checking --with-system-zlib Thread model: posix gcc version 4.2.1 it seem the system know what compiler it is using, the problem is the compiler can not find the lib to support the compiler to compile the code. and i am sure my env-variables are all set correctly, Executing: /home/fw407/OpenFOAM/OpenFOAM-1.4.1/.bashrc Executing: /home/fw407/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/ensightFoam/bashrc Executing: /home/fw407/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/paraview/bashrc so could any one give me some ideas on how to help the compiler to find the right lib to execute the code succesfully kind regards feng |
|
December 29, 2007, 23:20 |
Feng, did you rebuild binutils
|
#9 |
Senior Member
Michael Jaworski
Join Date: Mar 2009
Location: Champaign, IL, USA
Posts: 126
Rep Power: 17 |
Feng, did you rebuild binutils and compile gcc off of the fresh binutils?
The process is described in http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM I solved a lot of my problems by recompiling gcc off of a fresh binutils install and making sure the links are in place to use the new libraries. Good luck, Mike |
|
December 30, 2007, 16:35 |
I had once solved by renaming
|
#10 |
Member
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
I had once solved by renaming gcc directory in openfoam to _64 and solved the issue. This was on a x86_64 OS and x86 openfoam package. You can try this if it works.
|
|
December 30, 2007, 16:43 |
http://www.cfd-online.com/cgi-
|
#11 |
Member
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
||
December 30, 2007, 16:53 |
Sorry this was the wrong link.
|
#12 |
Member
vof_user
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Sorry this was the wrong link.
Please read as below instead. I resolved by renaming the gcc directory to gcc-4.2.1-64 instead of gcc-4.2.1 in the linux directory. |
|
December 31, 2007, 08:10 |
hi,mike,
i have followed th
|
#13 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi,mike,
i have followed the installation steps, but when i am dong the full installation of GNU binutils, i end up with : fw407@fw407-laptop:~/OpenFOAM/linux/tmp/binutils-2.18$ ./configure --prefix=$HOME/OpenFOAM/linux/binutils-2.18 checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking target system type... i686-pc-linux-gnulibc1 checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details then i tried "make" fw407@fw407-laptop:~/OpenFOAM/linux/tmp/binutils-2.18$ make make: *** No targets specified and no makefile found. Stop. kind regards feng |
|
December 31, 2007, 08:17 |
hi,saha,i am afraid i am using
|
#14 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
hi,saha,i am afraid i am using a 32-bit machine,i tried the method, unfortunately,it did not work.but i still appreciate you help
kind regards feng |
|
January 1, 2008, 14:01 |
Hi feng!
I remotly remember
|
#15 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi feng!
I remotly remember having seen similar errors like the ones you were reporting originally ("::xxxx has not been declared"). They either come from - a broken tar for the gcc (there once was one where certain symlinks to includes or similar were missing) - or it helps to also install the native compiler (some of the dependencies there are needed - the stuff that is mentioned in the error messages for instance resides in glibc-devel, I think) But I'm not totally sure (It's a long time since I had these problems). What system are you using and do you have the native development utilities installed? Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
January 3, 2008, 16:33 |
Hi Bernhard
i am using ubun
|
#16 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Hi Bernhard
i am using ubuntu 7.10. i have tried different tars for the gcc ,so i think the problems may lie in the un-compatibility between the OpenFoam and the systems. i once read a message about the compiler in ubuntu not able to find the right lib. when i am also trying to make the full installation of GNU binutils, i get the same error messages. configure: error: installation or configuration problem: C compiler cannot create executables. All the best Feng |
|
January 3, 2008, 19:26 |
Hi, Bernhar!
you are absolu
|
#17 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Hi, Bernhar!
you are absolutely right, something is wrong with my glibc-dev,and i install it and have fixed the problems of "checking for C compiler default output file name... configure: error: C compiler cannot create executables " ^_^ but i still can not compile "HelloWorld.C". so i think i should Compile GNU gcc,following the steps on the website http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM i think it is necessary for make a full installation of GNU binutils,yet when i type fw407@fw407-laptop:~/OpenFOAM/linux/tmp/binutils-2.16.1$ make i end up with: Configuring in libiberty configure: loading cache ./config.cache checking whether to enable maintainer-specific portions of Makefiles... no checking for makeinfo... /home/fw407/OpenFOAM/linux/tmp/binutils-2.16.1/missing makeinfo configure: WARNING: *** Makeinfo is missing. Info documentation will not be built. checking for perl... perl checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking for i686-pc-linux-gnulibc1-ar... ar checking for i686-pc-linux-gnulibc1-ranlib... ranlib checking for i686-pc-linux-gnulibc1-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. i have read messages about this kind of error, which tells me that i do not install a c++ compiler in my laptop(Dell 630,ubuntu 7.10),the method fo solving this is to install a c++ compiler in the linux systems,but in fact ,i have the c++ compiler in my systems fw407@fw407-laptop:~$ which g++ /home/fw407/OpenFOAM/linux/gcc-4.1.0/bin/g++ fw407@fw407-laptop:~$ g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr/tmp/gcc-4.1.0 --exec-prefix=/usr/tmp/gcc-4.1.0 --enable-languages=c,c++ --enable-shared --enable-__cxa_atexit --disable-checking --with-system-zlib Thread model: posix gcc version 4.1.0 by the way,now i am using version of 1.3, i just uninstall 1.4.1 All the best Feng |
|
January 4, 2008, 08:16 |
Hi Feng!
Before you do some
|
#18 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Feng!
Before you do something like recompiling the compiler: Have you ever tried the compiler that comes with your distro? Just move tle OpenFOAM/linux/gcc.x-directory away (so the scripts won'T find it) and try that. If the compiler is 4.x it SHOULD work Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
January 5, 2008, 07:38 |
Hi Bernhard
I remove the di
|
#19 |
Member
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 17 |
Hi Bernhard
I remove the directory, the system can not find the compiler,here is the output of the terminal fw407@fw407-laptop:~$ which g++ fw407@fw407-laptop:~$ g++ -v The program 'g++' can be found in the following packages: * g++ * pentium-builder Try: sudo apt-get install <selected> bash: g++: command not found according you theroy, i do not have to recompile the compiler. but what should i do instead? All the best Feng |
|
January 6, 2008, 03:09 |
It seems you don't have a syst
|
#20 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
It seems you don't have a system compiler on your machine.
It also seems that you have a debian based linux distribution. On short, use dselect/aptitude/apt-get or any other tool you have to manage the packages to install g++ in your distribution. It will come with everything you need (g++, gcc, ld, assembler, libraries...). Dragos |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Compiling problems | chris1980 | OpenFOAM Installation | 8 | June 3, 2015 16:41 |
Problems with compiling | roberthino | OpenFOAM Installation | 3 | March 17, 2008 05:04 |
Problems compiling under 14 | grtabor | OpenFOAM Running, Solving & CFD | 9 | July 17, 2007 23:34 |
Problems on Compiling UDF in FLUENT | Strawberi-KeatKeat | FLUENT | 1 | October 4, 2006 02:50 |
Problems with compiling CFD code! | ravi | Main CFD Forum | 1 | July 12, 2004 12:28 |