linux下编译C++程序出现错误 “*** stack smashing detected ***, eclipse解决方法
2013-11-08 20:37
1111 查看
如果运行的时候报“*** stack smashing detected ***, 那是因为你的系统默认使用了GCC的“
-fstack-protector"参数导致的,我们只需要在编译的时候 export CFLAGS="-fno-stack-protector"就好。
eclipse里面配置位置:C/C++ Build -> Setting -> GCC C++ Compiler -> Debugging -> Other Debugging flags,输入:-fno-stack-protector
-fstack-protector"参数导致的,我们只需要在编译的时候 export CFLAGS="-fno-stack-protector"就好。
eclipse里面配置位置:C/C++ Build -> Setting -> GCC C++ Compiler -> Debugging -> Other Debugging flags,输入:-fno-stack-protector
相关文章推荐
- Linux下面使用消息队列通信出现*** stack smashing detected ***: ./pop3main terminated的解决方法
- 在Eclipse下编译C++程序出现的Launch failed.Binary not found.问题的解决方法
- linux Eclipse上c++调用使用了tensorflow库的python程序遇到的问题及解决方法
- eclipse 解决编译出现GBK或UTF8 编码错误的方法
- Linux下Eclipse编译时,报recompile with -fPIC错误,解决方法
- cmd命令行执行java程序的编译和执行的方法及可能出现找不到或无法加载主类的错误的解决
- VC++ 2005编译出程序出现“应用程序配置错误”的解决方法
- C程序访问hadoop出现的各种编译错误和运行时各种类DefFound异常的解决方法
- asp.net程序编译调试时偶尔出现访问被拒绝的错误的解决方法
- 在VMware上编译linux内核出现VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) 错误的解决方法
- Linux下编译时出现的错误及解决方法
- .NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- 引用原因.NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory错误的解决方法.
- 编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- 类语句.NET下编译C++代码时出现"error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int"错误的解决方法。
- linux下带有CDT的Eclipse的helloworld编译错误的解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- GCC-4.6.3编译linux2.6.32.12内核出现“重复的成员‘page’”错误的解决方法
- linux内核编译过程中出现两个错误的解决方法~!