VS2010 C++ F7 不会在“调试”中创建可执行文件;

发布于 2025-01-01 03:46:28 字数 243 浏览 3 评论 0原文

我是编程初学者,在调试时遇到了这个问题。我的程序构建成功,但在调试它后,我收到此错误:

“无法启动程序'projects\workspls\Debug\workpls.exe'。 系统找不到这个文件”

我已经读了很多关于它的内容,我相信我应该更改解决方案属性中的某些路径以匹配,因为在构建程序后在“调试”或任何其他地方没有创建可执行文件。但是每次我转到“解决方案属性”,我感到很困惑,不知道要更改什么。 如果有人能帮助我,我将不胜感激。

I'm beginner at programming and I've got this problem with debugging. My programme builds successfully but after I debug it, I just get this error:

"unable to start program 'projects\workspls\Debug\workpls.exe'.
System cannot find this file"

I already read a lot about it and I believe I'm supposed to change certain paths in Solutions Properties to match since there is no executable created in 'debug' or any other place after building program. But every time I go to Solutions Properties I get confused and don't have a clue what to change.
Would appreciate it if anyone could help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄荷港 2025-01-08 03:46:28

如果您的输出显示“已完成生成代码”,则查看 Visual Studio 编写 exe 的文件路径。

我的 exe 文件是相对于解决方案编写的,而不是相对于我编写代码的各个项目(如我所期望的)。

但在我阅读之前的答案之前,除了调试目录中的项目(Visual Studio 的常用位置)之外,我没想到可以去任何地方查找。

if your output said "Finished generating code", then look at the file path where visual studio wrote the exe.

My exe files were being written relative to the solution, not to the various projects where I was writing the code (as I had expected).

But until I read the previous answers, I didn't think to look anywhere except under the project in the debug directory - the usual place for visual studio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文