LNK2019错误-如何消除它们
LNK2019 errors - how do I get rid of them?
使用msvc2008编译器处理qt项目。我从一个在visualstudio2008中运行良好的示例项目中复制了一些函数,但现在我遇到了LNK2019错误。我环顾四周,他们似乎是因为编译器没有找到某种声明?
错误为:
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall CPDIdev::GetLastResultStr(void)" (__imp_?GetLastResultStr@CPDIdev@@QAEPBGXZ) referenced in function "private: bool __thiscall trackerWindow::Connect(void)" (?Connect@trackerWindow@@AAE_NXZ)
和
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CPDIbiterr::Parse(unsigned short *,unsigned long)const " (__imp_?Parse@CPDIbiterr@@QBEXPAGK@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
和
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CPDIdev::StartPipeExport(unsigned short const *)" (__imp_?StartPipeExport@CPDIdev@@QAEHPBG@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
CPDIdev类来自我使用的硬件所使用的库,所以我没有写过任何代码,也不理解任何代码
我在.pro文件中有以下内容
INCLUDEPATH += D:PatriotInc
LIBS += D:PatriotLibPDI.lib
和
#include "PDI.h"
在头文件(trackerwindow.h)中…不确定我缺少了什么声明或包含。。。
有什么想法吗?非常感谢!
这意味着您缺少一个导入库.lib
。
相关文章:
- 警告处理为错误这里有什么问题
- "error: no matching function for call to"构造函数错误
- boost::进程间消息队列引发错误
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 有关插入适配器的错误。[错误]请求从 'back_insert_iterator<vector<>>' 类型转换为非标量类型
- QT在错误的班级中寻找空位
- vector.resize()中的分配错误
- 代码在main()中运行,但在函数中出现错误
- 释放错误后堆使用
- (C++)分析树以计算返回错误值的简单算术表达式
- Project Euler问题4的错误解决方案
- 我的字符计数代码计算错误.为什么
- 从"int*"强制转换为"unsigned int"会丢失精度错误
- 尝试导入pybind-opencv模块时出现libgtk错误
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- 在某些循环内使用vector.push_back时出现分段错误
- MSVC多行宏编译器错误
- 静态数据成员的问题-修复链接错误会导致编译器错误
- 错误:' template '(作为消歧器)只允许在模板中使用
- 执行高斯消去程序时结果错误