g++ errors
Hi!
I installed g++ 3.3.3 on my system (SID) and always when compiling
something I get loads of error messages. I wrote a simple hello-world
program and got this output after calling g++ test.cpp:
In file included from
/usr/include/c++/3.3/i486-linux/bits/gthr-default.h:37,
from /usr/include/c++/3.3/i486-linux/bits/gthr.h:98,
from /usr/include/c++/3.3/i486-linux/bits/c++io.h:37,
from /usr/include/c++/3.3/bits/fpos.h:44,
from /usr/include/c++/3.3/iosfwd:49,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/ostream:45,
from /usr/include/c++/3.3/iostream:45,
from test.cpp:1:
/usr/include/pthread.h:163: error: Fehler beim Parsen before `__thread'
/usr/include/pthread.h:165: error: `pthread_create' declared as function
returning a function
/usr/include/pthread.h:166: error: Fehler beim Parsen before `void'
/usr/include/pthread.h:591: error: storage class specifiers invalid in
parameter declarations
/usr/include/pthread.h:591: error: storage class specified for parameter `
parameter'
In file included from /usr/include/pthread.h:655,
from
/usr/include/c++/3.3/i486-linux/bits/gthr-default.h:37,
from /usr/include/c++/3.3/i486-linux/bits/gthr.h:98,
from /usr/include/c++/3.3/i486-linux/bits/c++io.h:37,
from /usr/include/c++/3.3/bits/fpos.h:44,
from /usr/include/c++/3.3/iosfwd:49,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/ostream:45,
from /usr/include/c++/3.3/iostream:45,
from test.cpp:1:
/usr/include/bits/sigthread.h:36: error: storage class specifiers invalid in
parameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for
parameter
`parameter'
g++-2.95 works fine... any ideas?
regards,
Martin
Reply to: