Visual Studio 2010新项目向导制造的MFC对话框程序无法在调试模式下编译?

发布于 2024-09-25 21:48:56 字数 922 浏览 2 评论 0原文

我使用 Visual Studio 2010 的向导创建了一个新项目。 VS 完成生成项目后,我尝试构建它 - 在发布模式下它工作得很好,但在调试模式下却没有,给出以下编译器错误:

1>------ Build started: Project: MyProj, Configuration: Debug Win32 ------
1>Build started 05/10/2010 22:17:08.
1>InitializeBuildStatus:
1>  Touching "Debug\MyProj.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>ResourceCompile:
1>  All outputs are up-to-date.
1>ManifestResourceCompile:
1>  All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\My Documents\Dev\MyProj\MyProj\Debug\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.24
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我在向导中设置了以下参数:

  • 基于MFC 应用程序
  • 对话框
  • 在中使用 MFC静态库
  • 添加了“Windows Sockets”高级功能

我使用的是 Windows 7 64 位旗舰机。

I've created a new project using the Visual Studio 2010's wizard. Once VS was finished generating the project I tried building it - in release mode it worked great, but in debug mode it didn't, giving the following compiler error:

1>------ Build started: Project: MyProj, Configuration: Debug Win32 ------
1>Build started 05/10/2010 22:17:08.
1>InitializeBuildStatus:
1>  Touching "Debug\MyProj.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>ResourceCompile:
1>  All outputs are up-to-date.
1>ManifestResourceCompile:
1>  All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\My Documents\Dev\MyProj\MyProj\Debug\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.24
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I set the following parameters in the wizard:

  • MFC Application
  • Dialog based
  • Use MFC in a static library
  • Added the "Windows Sockets" advanced feature

I'm on a Windows 7 64bit Ultimate machine.

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

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

发布评论

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

评论(1

我的黑色迷你裙 2024-10-02 21:48:56

这似乎是 Visual Studio 2010 中的一个小错误。当我关闭解决方案并重新打开它后,它工作正常...
此错误在我的设置中可以重现。

This seems like a minor bug in Visual Studio 2010. Once I closed the solution and reopened it, it worked fine...
This error is reproducible on my setup.

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