Home > Database > Mysql Tutorial > body text

vs2013+qt5.3.2 QSerialPort 编译时提示找不到外部符号,连接出

ringa_lee
Release: 2018-05-10 15:38:48
Original
3096 people have browsed it

类如下的错误 widget.obj : error LNK2019: 无法解析的外部符号 __declspec(dllimport) public: __thiscall QSerialPortInfo::QSerialPortInfo(class QSerialPortInfo const ) (__imp_??0QSerialPortInfo@@QAE@ABV0@@Z),该符号在函数 private: void __thisc

类似如下的错误

widget.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall QSerialPortInfo::QSerialPortInfo(class QSerialPortInfo const &)" (__imp_??0QSerialPortInfo@@QAE@ABV0@@Z),该符号在函数 "private: void __thiscall QList

因为qt-vs-addin-1.2.3-opensource.exe中的模块配置没有QSerialPort相关的配置,所以VS2013不会自动增加对应的外部库引用,需要手动增加QSerialPort.lib库依赖,具体操作如下:

1.VS2013中,单击菜单 项目-> xx项目属性...(Alt+F7),出现 xx属性页 对话框 

2.单击  配置属性->连接器->输入,

3.附加依赖项 中增加 Qt5SerialPortd.lib文件(Debug配置) Qt5SerialPort.lib(Release配置)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!