QT做串口时,出现undefined reference to `_imp___ZN15

QT做串口通信时,出现

error: undefined reference to `_imp___ZN15QSerialPortInfo14availablePortsEv'

error: undefined reference to `_imp___ZN11QSerialPortC1EP7QObject'

等错误时,

只需要在.pro中添加

QT+=serialport

就可以了。

发布了16 篇原创文章 · 获赞 15 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_40318907/article/details/99583849
今日推荐