2015-04-28 26 views
1

此問題可能無法解答;因爲它處理來自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中做錯了什麼。非常感謝!

+1

要啓動,'warnings'是編譯器(或鏈接器)發現它認爲是錯誤的東西,但不違反所使用的C標準。警告需要修復。在這種情況下,它表示某些關鍵資源不可用。 – user3629249

+1

有一些跡象表明項目文件不適用於Visual Studio項目文件。建議建立一個新項目(可能在同一個目錄中) – user3629249

+0

我會建立一個新項目,然後以某種方式添加該項目嗎? – Joe

回答

0

來自問題描述,似乎產品未正確安裝。

以下是Linux的安裝說明。

下載Windows的產品版本時,可以使用類似的文件。

Linux'install.txt'文件的內容。

------------- 
Installation 
------------- 
1. Login as normal unprivileged user and create a working 
    directory for this package: 
    (In this example, assume UID is 'devel' & GID is 'users') 
     mkdir ~/DDC1553[S,D]1_x_y_z_b 

2. Change to that directory: 
     cd ~/DDC1553[S,D]1_x_y_z_b 

3. Copy the distribution archive to the working directory: 
     cp <path_to_archive>/BU69092[S,D]1_x_y_z_b.tgz . 

4. Enter 'superuser' mode: 
     su 

5. Extract the distribution archive: 
     tar -xzpPf BU69092[S,D]1_x_y_z_b.tgz 

6. Change the ownership of all distribution files 
    in the user's home directory to normal user: 
     chown -R devel.users * 

7. Install the Run-time library binaries using the supplied 
    script 'install-emacepl.sh' in the 'tools' directory: 
     cd tools 
     ./install-emacepl.sh 
     cd .. 

8. Install the Ace support library binaries (optional) using 
    the supplied script 'install-acetoemace.sh' in the 'tools' 
    directory: 
     cd tools 
     ./install-acetoemace.sh 
     cd .. 

9. Install the TstSim support library binaries (optional) using 
    the supplied script 'install-tstsim.sh' in the 'tools' 
    directory: 
     cd tools 
     ./install-tstsim.sh 
     cd .. 

10. Exit 'superuser' mode: 
     exit 

--------------- 
Uninstallation 
--------------- 
1. List all files installed onto the system: 

    tar -tzvf BU69092[S,D]1_x_y_z_b.tgz 

2. Delete all listed files, along with the driver objects written 
    to the kernel modules library tree, and/or the DDC system 
    directory during the driver build stages. 

3. Remove the software suite from the system 

-------------------- 
Further Information 
-------------------- 
Refer to the ~/DDC1553[S,D]1_x_y_z_b/readme.txt file for further 
guidance pertaining to the installation and utilization of this 
software suite. 

請注意有關安裝庫的說明。 從鏈接器消息中,似乎未安裝庫 或者未配置visual C++來搜索庫。

+0

這很有道理。 – Joe

+0

早些時候你寫過關於建立一個新項目。我的一位同事做了一個New-> Project From Existing Code ...並擺脫了我所看到的那些錯誤。再次感謝你的幫助。一個新項目就是答案。 – Joe