[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,致谢。

原文地址:https://www.cnblogs.com/yushuo1990/p/4312576.html