此問題可能無法解答;因爲它處理來自Data Device Corporation(DDC)的某個品牌的軟件。無法構建C程序「bcasync2」
我想在Microsoft Visual C++ 2010 Express中運行C程序;我得到錯誤。
DDC在名爲「BU-69092S0_3_2_15」的文件夾中提供了一些軟件。
在那個文件夾中有一個我運行的「setup」應用程序。安裝應用程序創建了一個名爲DDC的文件夾。
在DDC文件夾內有另一個名爲「aceXtremeSDKv3215」的文件夾。在這個文件夾中有一個「Samples」文件夾,其中有可用的樣本可以運行。
我無法在Visual Studios中運行這些示例中的任何一個。我最初試圖首先運行「bcasync2」解決方案,但無法使其工作。然後我開始嘗試其他樣本,但都有相同的錯誤。
會發生什麼:
我開始視覺工作室,然後我去開>項目/解決方案。
然後,我導航到一個示例(如bcasync2),然後單擊打開。
我得到一個警告,其內容爲:C:\DDC\aceXtremeSDKv3215\Samples\bcasync2\BCAsync2.vcxproj : warning : Platform 'x64' referenced in the project file 'S_BcAsync2' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'.
(但它僅是一個警告,所以我繼續前進。)
然後我點擊綠色箭頭。
我被問到是否要構建此項目。我點擊是。
我得到構建錯誤。第一行寫着:這條線C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1422,5): warning : The referenced project '..\..\emacepl.vcxproj' does not exist.
後,我得到很多LNK2019錯誤:
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _PrintHeader
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _PrintOutError
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol [email protected] referenced in function _main
1>Win32\Release\bcasync2.exe : fatal error LNK1120: 18 unresolved externals
我相信,這些符號很可能應該在「emacepl.vcxproj」的文件,它無法找到被發現。 (我不知道)
但是在「BU-69092S0_3_2_15」中單擊「setup」應用程序後創建的DDC文件夾中找不到「emacepl.vcxpro」。
在使用此軟件時,有沒有人遇到過這個問題?或者是否有人看到我可能在Visual Studio中做錯了什麼。非常感謝!
要啓動,'warnings'是編譯器(或鏈接器)發現它認爲是錯誤的東西,但不違反所使用的C標準。警告需要修復。在這種情況下,它表示某些關鍵資源不可用。 – user3629249
有一些跡象表明項目文件不適用於Visual Studio項目文件。建議建立一個新項目(可能在同一個目錄中) – user3629249
我會建立一個新項目,然後以某種方式添加該項目嗎? – Joe