復試上機一定要用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,致謝。