搞了两天了,到底怎么弄呀

C:/Program Files (x86)/Dev-Cpp/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\gaowaner\Desktop\the file/exe/test.exe: No such file or directory
collect2.exe: error: ld returned 1 exit status
The terminal process "C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe '-g', 'c:\Users\gaowaner\Desktop\the file\.vscode\test.cpp', '-o', 'C:\Users\gaowaner\Desktop\the file/exe/test.exe'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

你这个问题我刚刚遇到了,你先把dev C++卸载掉,然后再重装一下就好了的。

是环境问题引起的错误,还是程序bug问题呢?

显示test.exe文件不存在啊,你的程序没有编译成功,你写个最简单的mian函数试试,int main(){int i =0;return 0};试试能不能编译成功,如果可以,就说明是你代码的问题,如果不行,就说明是环境的问题。

您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632