Dev cpp不能调试问题的解决方法

来源:百度文库 编辑:神马文学网 时间:2024/04/30 21:00:07
Dev cpp不能调试问题的解决方法

 

1. 在tools->compiler option->compiler得"Add following commands when calling complier"下面的编辑框里加上:-g3. 然后在下面的"Add these commands to the linker command line" 下的编辑框上加上:-g3.

2. 在tools->compiler option->settings->linker下设置生成调试调试信息.

3. 转到programs页,把gcc行修改为:gcc.exe -D__DEBUG__,把g++行修改为g++.exe -D__DEBUG__ ,点击ok。
4. 重新编译,就能调试了