如果你的ubuntu是最新的或者比较新的版本,那么在编译过程中,会出现:
- <command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
- <built-in>:0:0: note: this is the location of the previous definition
- cc1plus: all warnings being treated as errors
这样的错误,这个错误引起的原因在于gcc的版本太高了,gcc -v 可以看见是4.6.1的;
解决方法为:安装gcc4.4的