musketaquid
15-08-2007, 18:25
Hallo!
Ich versuche ein Beispiel aus einem C++ Lehrbuch zu compilieren. Aber ich bekomme immer wieder diese Fehlermeldung:
clib > g++ -Wall -o cpplibTest cpplibTest.cpp cpplib.cpp
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:43: error: expected unqualified-id before 'namespace'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: expected namespace-name before ';' token
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:43: error: expected unqualified-id before 'namespace'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: expected namespace-name before ';' token
Ich hab mir c++config.h schon angeschaut, werde aber nicht schlau, was da schief läuft. Ich steh ja auch noch so ziemlich am Anfang was C++ angeht ;)
Hatt jemand einen Rat?
Ich versuche ein Beispiel aus einem C++ Lehrbuch zu compilieren. Aber ich bekomme immer wieder diese Fehlermeldung:
clib > g++ -Wall -o cpplibTest cpplibTest.cpp cpplib.cpp
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:43: error: expected unqualified-id before 'namespace'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: expected namespace-name before ';' token
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:43: error: expected unqualified-id before 'namespace'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:47: error: expected namespace-name before ';' token
Ich hab mir c++config.h schon angeschaut, werde aber nicht schlau, was da schief läuft. Ich steh ja auch noch so ziemlich am Anfang was C++ angeht ;)
Hatt jemand einen Rat?