[ACM训练] DEV C++如何处理不能调试


复试上机一定要用DEV C++,使用不熟练,出现一些问题,记录如下:

1、DEV C++ 不能调试

(1)tools->compiler option->settings:linker里设置为yes后,Generate debugging information,并且Rebuild All 了。

(2)tools->compiler option->compiler:勾选两个ADD,"Add following commands when calling complier编译时加入下面命令"的编辑框里加上:-g3,在下面的"Add these commands to the linker command line在连接器命令行加入以下命令" 下的编辑框上加上:-g3

(3)tools->compiler option->programs:把gcc行修改为:gcc.exe -D__DEBUG__,把g++行修改为g++.exe -D__DEBUG__ ,点击ok。

(4)重新编译,就能调试了。

                解决方案转自:http://blog.sina.com.cn/s/blog_7cf1c3b10100qlu4.html,致谢。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM