根据
http://apps.hi.baidu.com/share/detail/22996526的步骤,在工程中加入了
qextserialbase.cpp和qextserialbase.h 以及posix_qextserialport.cpp和posix_qextserialport.h,
头文件中添加了#include “posix_qextserialport.h”
和Posix_QextSerialPort *myCom;
在cpp文件中调用:myCom = new Posix_QextSerialPort();
编译错误:.obj/release-shared-emb-arm/dialog.o(.txt+0x8fc): In function 'Dialog::dialog(): undefined reference
to 'Posix_QextSerialPort::Posix_QextSerialPort()'
明明定义了,为啥报错,难道在添加派生类有额外的编译
参数或库函数