/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即可解决。