2013-04-12 61 views
1

我建立一個IE瀏覽器擴展(ATL)與VS2008,不知何故,當我切換到釋放模式下,它給了我一些鏈接錯誤:錯誤而在釋放模式編譯

Error 2 fatal error C1083: Cannot open include file: 'ImplAddon.h': No such file or directory *************** 19 Engine 
Error 3 fatal error LNK1181: cannot open input file '..\release addon\engine.lib' Addon Addon 

我試圖添加到項目屬性中的「附加包含目錄」中的每個項目都與「ImplAddon.h」的相關路徑,但沒有任何幫助。

不知道該怎麼辦?

非常感謝小夥子們:)

+1

您確定您已經添加了dditional include目錄來發布和調試配置嗎? –

+0

你的項目在調試模式下編譯好嗎? –

+0

是的,它在調試中編譯得很好。我注意到你需要在發佈模式下添加額外的目錄,但這沒有幫助。 – user1326293

回答

5

右擊每個項目去properties然後頂部,左側有一個下拉菜單,選擇環境。那裏選擇all configurations。然後去C++ - >General - >Additional directories然後添加您的標頭失敗位於的路徑。

enter image description here

+1

你真是太棒了! :) – user1326293