解决方法如下:
操作设备:戴尔笔记本电脑
操作系统:win10
操作程序:DEV-C++ v2.01
1、首先我们打开DEV-C++,点击菜单栏中的“工具”,点击“编译选项”这个选项,打开编译选项对话框。
![](https://iknow-pic.cdn.bcebos.com/4034970a304e251f703d1519a986c9177e3e530d?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、然后我们选中“编译时加入以下命令”和“在连接器命令行加入以下命令”这两个复选框。
![](https://iknow-pic.cdn.bcebos.com/a6efce1b9d16fdfa12a9370fba8f8c5495ee7b0e?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、在“编译时加入以下命令”和“在连接器命令行加入以下命令”复选框下的两个文本框中各输入“-g3”(不包括双引号)。
![](https://iknow-pic.cdn.bcebos.com/09fa513d269759ee5ca0912abcfb43166c22df5b?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、点击“代码生成/优化”选项卡,点击“连接器”栏,点击右侧“产生调试信息”栏右边的复选框,将它改成“Yes",点击下方”确定“。
![](https://iknow-pic.cdn.bcebos.com/b999a9014c086e065071ceaa0c087bf40bd1cb72?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
5、最后,重启DEV-C++即可解决问题。
![](https://iknow-pic.cdn.bcebos.com/3bf33a87e950352a4bb8d4e95d43fbf2b3118b72?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)