c++ - 在 WinCE 中哪里可以找到 coredll.lib

标签 c++ visual-c++ bluetooth windows-ce winsock2

我正在 WindowsCE 6.0 中编写示例应用程序。我想将手持设备连接到另一个蓝牙设备并交换数据。我正在关注这个 link .但是当编译示例代码时,我遇到了这些错误

1>BlueToothTestDlg.obj : error LNK2019: unresolved external symbol WSALookupServiceEnd referenced in function "public: void __cdecl CBlueToothTestDlg::OnBnClickedFdButton(void)" (?OnBnClickedFdButton@CBlueToothTestDlg@@QAAXXZ)

1>BlueToothTestDlg.obj : error LNK2019: unresolved external symbol WSALookupServiceNextW referenced in function "public: void __cdecl CBlueToothTestDlg::OnBnClickedFdButton(void)" (?OnBnClickedFdButton@CBlueToothTestDlg@@QAAXXZ)

1>BlueToothTestDlg.obj : error LNK2019: unresolved external symbol WSALookupServiceBeginW referenced in function "public: void __cdecl CBlueToothTestDlg::OnBnClickedFdButton(void)" (?OnBnClickedFdButton@CBlueToothTestDlg@@QAAXXZ) 1>FLEX7000_2450

(ARMV4I)\Debug\BlueToothTest.exe : fatal error LNK1120: 3 unresolved externals

我已经包含了这些标题

#include <Winsock2.h>
#include <Ws2bth.h>
#include <bt_sdp.h>
#include <bthapi.h>
#include <bt_api.h>
#include <winioctl.h>

搜索时我found这可能是因为缺少 coredll.lib。但我不确定在哪里可以找到它以及如何包含它?

谢谢

最佳答案

我找到了解决方案。我在项目属性下的链接器输入标志中添加了 Ws2.lib,现在应用程序已构建。

关于c++ - 在 WinCE 中哪里可以找到 coredll.lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18773288/

相关文章:

c++ - 涉及 const 时无法特化模板

c++ - WhiteThresholdImage 魔法

ios - 面向 iBeacon 的设备方向

bluetooth - SensorTag 2 CC2650 广告不确定固件

ios - 如何使用蓝牙 LE iOS 在桌面 View 上显示找到的设备列表

c++ - 在 Cap'n Proto 中读写字节数组的正确语法?

c++ - 如何在 Linux 上分析我的 C++ 应用程序

c++ -/usr/lib/x86_64-linux-gnu/libstdc++.so.6 : version CXXABI_1. 3.8' 未找到

c++ - C++ 中的属性

c - C 中的 sin v/s sinf 函数