|
|
前天把整个系统更新了一下,结果出来一堆问题...写一个简单的程序,调用了math.h,然而在make的时候却报错:/usr/include/math.h:30: error: expected unqualified-id before string constant。
改成 include<cmath>却出现以下错误
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/cmath:49: error: '#pragma' is not allowed here
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/i686-pc-linux-gnu/bits/c++config.h:47: error: expected namespace-name before ';' token
不知道有哪位知道如何解决?十分 感谢! |
|