2015-11-06 97 views
0

我剛剛在Visual Studio 2013 Ultimate中創建了C++控制檯應用程序。只在調試模式下的Visual Studio C++ LNK 1104錯誤

當我運行在調試模式下的代碼:

error LNK1104: cannot open file 'C:\Users\example.exe' 

當我運行在發佈模式代碼:

Build: 1 succeeded 

你有任何想法,爲什麼我有LNK1104的「調試模式」 ?

+0

您是否嘗試過清潔和重建? – NathanOliver

+0

https://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx – HDJEMAI

+0

@NathanOliver我做了10次清理和重建,包括重新啓動操作系統。 –

回答

1

好的,我想我找到了解決方案。

我目前使用的「BitDefender的整體安全2015」 和殺毒部分,

我發現下面的消息

enter image description here

所以準確的Bitdefender刪除我的exe文件,每次我編譯在調試版本中。

解決方案:

轉到防病毒部分:

enter image description here

點擊排除排除選項卡上的文件和文件夾

enter image description here

最後添加項目路徑

enter image description here

我這樣做,我的項目也在調試版本中工作。

我希望這個解決方案有幫助

相關問題