喜欢 VS2013 的 Win32 dll 上的库的麻烦
Troubles liking libraries on a Win32 dll for VS2013
我在链接我的库以便在VS2013上制作dll时遇到问题。我不得不说,由于winapifamily的一些麻烦,我需要一个桌面dll,所以这是一个Win32项目,我想这可能也是一个问题,但到目前为止我没有更好的解决方案。我得到的一些错误:
error LNK2001: unresolved external symbol __imp_NuiCreateSensorByIndex
error LNK2001: unresolved external symbol __imp_NuiSetDeviceStatusCallback
error LNK2001: unresolved external symbol __imp_NuiGetSensorCount
error LNK2001: unresolved external symbol "void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)" (?print@console@pcl@@YAXW4VERBOSITY_LEVEL@12@PEBDZZ)
error LNK2001: unresolved external symbol "protected: bool __cdecl pcl::PCLBase<struct pcl::PointXYZ>::deinitCompute(void)" (?deinitCompute@?$PCLBase@UPointXYZ@pcl@@@pcl@@IEAA_NXZ)
error LNK2001: unresolved external symbol "protected: bool __cdecl pcl::PCLBase<struct pcl::PointXYZ>::initCompute(void)" (?initCompute@?$PCLBase@UPointXYZ@pcl@@@pcl@@IEAA_NXZ)
谢谢。
如果要
包含外部资源,则需要将它们显式馈送到链接器中或将它们作为动态库引用(显式或隐式)
这个答案显示了几个很好的步骤: https://stackoverflow.com/a/20410798/351861
相关文章:
- Win32编译器选项和内存分配
- C++win32 API创建多个类似视口的窗口
- WM_CTLCOLORSTATIC从未在WIN32应用程序中触发
- 检测win32服务创建和删除的最佳方法
- WIN32:C++,为什么在WM_CLOSE上调用Messagebox函数程序正在冻结
- 将 win32 hbitmap 转换为 winrt softwarebitmap
- 使用 WIN32 API (C/C++) 对特定树视图项进行着色
- Alt+Enter 在 Win32 应用中,管理大小调整和分辨率
- VSCode C++ 编译的exe感染了Win32:TrojanX-gen[Trj]
- 从预处理器获取 Windows 版本(C++ Win32)
- 我已经阅读了很多关于 2d 数组的信息,但我在作业中使用它时遇到了麻烦
- Issues with Win32 ReadProcessMemory API
- Win32 发送输入鼠标移动滞后并冻结
- 查找奇数平方和时遇到麻烦
- 如何从 Win32 C++ 应用程序输出到父控制台窗口?
- C++线程:如何在一个线程仍在运行时阻止另一个线程执行 (Win32)
- 将 Win32/WinAPI 应用程序移植到 wxWidgets
- Win32 API 控制台光标在 WriteConsole 后不移动
- C++ Win32 Threads
- 喜欢 VS2013 的 Win32 dll 上的库的麻烦