lua

g++ 4.4 bug引发glibc系列函数无法找到问题解决方法

/usr/include/c++/4.4/cstdio: At global scope:
/usr/include/c++/4.4/cstdio:107: error: ‘::fprintf’ has not been declared
/usr/include/c++/4.4/cstdio:108: error: ‘::fputc’ has not been declared
/usr/include/c++/4.4/cstdio:109: error: ‘::fputs’ has not been declared
/usr/include/c++/4.4/cstdio:112: error: ‘::fscanf’ has not been declared
/usr/include/c++/4.4/cstdio:116: error: ‘::fwrite’ has not been declared
/usr/include/c++/4.4/cstdio:121: error: ‘::printf’ has not been declared
/usr/include/c++/4.4/cstdio:122: error: ‘::putc’ has not been declared
/usr/include/c++/4.4/cstdio:123: error: ‘::putchar’ has not been declared
/usr/include/c++/4.4/cstdio:124: error: ‘::puts’ has not been declared
/usr/include/c++/4.4/cstdio:128: error: ‘::scanf’ has not been declared
/usr/include/c++/4.4/cstdio:131: error: ‘::sprintf’ has not been declared
/usr/include/c++/4.4/cstdio:132: error: ‘::sscanf’ has not been declared
/usr/include/c++/4.4/cstdio:136: error: ‘::vfprintf’ has not been declared
/usr/include/c++/4.4/cstdio:137: error: ‘::vprintf’ has not been declared
/usr/include/c++/4.4/cstdio:138: error: ‘::vsprintf’ has not been declared
/usr/include/c++/4.4/cstdio:165: error: ‘::snprintf’ has not been declared
/usr/include/c++/4.4/cstdio:166: error: ‘::vfscanf’ has not been declared
/usr/include/c++/4.4/cstdio:167: error: ‘::vscanf’ has not been declared
/usr/include/c++/4.4/cstdio:168: error: ‘::vsnprintf’ has not been declared
/usr/include/c++/4.4/cstdio:169: error: ‘::vsscanf’ has not been declared
/usr/include/c++/4.4/cstdio:176: error: ‘__gnu_cxx::snprintf’ has not been declared
/usr/include/c++/4.4/cstdio:177: error: ‘__gnu_cxx::vfscanf’ has not been declared
/usr/include/c++/4.4/cstdio:178: error: ‘__gnu_cxx::vscanf’ has not been declared
/usr/include/c++/4.4/cstdio:179: error: ‘__gnu_cxx::vsnprintf’ has not been declared
/usr/include/c++/4.4/cstdio:180: error: ‘__gnu_cxx::vsscanf’ has not been declared

以上为提示的错误,解决方法只需要在g++编译参数中加入-E即可解决。

posted on 2011-03-16 23:29 chib 阅读(1114) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2013年2月>
272829303112
3456789
10111213141516
17181920212223
242526272812
3456789

导航

统计

常用链接

留言簿(1)

随笔档案

牛人录

时政史料

投资管理

源码库

搜索

最新评论

阅读排行榜

评论排行榜