[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