gpt4 book ai didi

无法构建 C 程序 "bcasync2"

转载 作者:太空宇宙 更新时间:2023-11-04 04:36:51 26 4
gpt4 key购买 nike

这个问题可能没有答案;因为它涉及 Data Device Corporation (DDC) 的某个品牌的软件。

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

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

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

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

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

发生了什么:

我启动 Visual Studios,然后转到“打开”->“项目/解决方案”。

然后我导航到示例(例如 bcasync2)并单击“打开”。

我收到一条警告,内容为:C:\DDC\aceXtremeSDKv3215\Samples\bcasync2\BCAsync2.vcxproj:警告:找不到项目文件“S_BcAsync2”中引用的平台“x64”。请确保您已将其安装在“%VCTargetsPath%\Platforms\x64”下。
(但这只是一个警告,所以我继续。)

然后我点击绿色箭头。

我被问到是否要构建这个项目。我点击是。

我遇到构建错误。第一行是:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1422,5): warning : The referenced project '..\..\emacepl.vcxproj'不存在。

在这一行之后我得到了很多 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++ 未配置为搜索库。

关于无法构建 C 程序 "bcasync2",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29923342/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com