2010-10-05 50 views
0

我已經使用Visual Studio 2010的嚮導創建了一個新項目。一旦VS結束產生的項目我試圖構建它 - 在釋放模式下它的工作很好,但在調試模式下它沒有,給下面的編譯器錯誤:Visual Studio 2010新建項目嚮導生成的MFC對話框程序無法在調試模式下編譯?

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套接字」 高級功能

我在Windows 7 64bit Ultimate機器上。

+0

使用微軟產品...尤其是新產品。 – wengseng 2010-10-06 03:43:45

回答

0

這似乎是在Visual Studio 2010中一個小錯誤。一旦我關閉瞭解決方案並重新打開它,它工作得很好...
這個錯誤是我的設置重複性。

相關問題