无法构建 C 程序 "bcasync2"

Can't build C program "bcasync2"

这个问题可能没有答案;因为它涉及 Data Device Corporation (DDC) 的某些 b运行d 软件。

我正在尝试 运行 Microsoft Visual C++ 2010 Express 中的 C 程序;我收到错误。

DDC 在名为“BU-69092S0_3_2_15”的文件夹中提供了一些软件。

在该文件夹中有一个“设置”应用程序,我 运行。安装应用程序创建了一个名为 DDC 的文件夹。

在DDC文件夹中还有一个名为“aceXtremeSDKv3215”的文件夹。在这个文件夹中有一个“示例”文件夹,其中包含 运行 可用的示例。

我无法在 Visual Studios 中 运行 这些示例中的任何一个。我最初尝试先 运行 “bcasync2” 解决方案,但无法让它工作。然后我开始尝试其他样本,但都有相同的错误。

会发生什么:

我启动 Visual Studios,然后转到打开->Project/Solution。

然后我导航到示例(例如 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 _aceGetLibVersion@0 referenced in function _PrintHeader
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceErrorStr@12 referenced in function _PrintOutError
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceGetBSWErrString@8 referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceCmdWordParse@20 referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceGetMsgTypeString@4 referenced in function _DisplayDecodedMsg
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCStop@4 referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCGetMsgFromIDDecoded@16 referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCAsyncMsgCreateBCtoRT@36 referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCSendAsyncMsgHP@12 referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCStart@12 referenced in function _GetBCMsgsFromID
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceFree@4 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCAsyncMsgCreateRTtoBC@36 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCFrameCreate@28 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCOpCodeCreate@28 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCMsgCreateBCtoRT@32 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCDataBlkCreate@20 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceBCConfigure@8 referenced in function _main
1>bcasync2.obj : error LNK2019: unresolved external symbol _aceInitialize@24 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 Studios 上做错了什么吗?非常感谢!

从问题描述来看,好像是产品没有正确安装。

以下是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++ 未配置为搜索库。