求助
本人用QSerialPort写串口通信的程序
但是一开始就报错
QList<QSerialPortInfo> info = QSerialPortInfo::availablePorts();
foreach (QSerialPortInfo val, info) {
qDebug() << val.manufacturer() << endl;
}
就是添加了这么几行代码
编译的时候报错:
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSerialPortInfo::~QSerialPortInfo(void)" (__imp_??1QSerialPortInfo@@QAE@XZ) referenced in function "public: void * __thiscall QSerialPortInfo::`scalar deleting destructor'(unsigned int)" (??_GQSerialPortInfo@@QAEPAXI@Z)
求大神指导该怎么解决?哪里出问题了?先谢谢了