说先,对下错误,免得看半天发现说的不是一个东西
C:\Qt\Qt5.5.0\Myprojects\qtDemo20180813\qtDemo20180813\build-test-Desktop_Qt_5_5_0_MinGW_32bit-Debug/../test/test.cpp:230: undefined reference to `VCI_OpenDevice(unsigned long, unsigned long, unsigned long)@12'
C:\Qt\Qt5.5.0\Myprojects\qtDemo20180813\qtDemo20180813\build-test-Desktop_Qt_5_5_0_MinGW_32bit-Debug/../test/test.cpp:237: undefined reference to `VCI_InitCAN(unsigned long, unsigned long, unsigned long, _INIT_CONFIG*)@16'
个人理解,这就是你光有头文件了,但是找不到库文件
所以,两种方法排查,
第一种,看下你的库文件是否包含了,具体方式可百度QT 包含库方式
第二种 就是要注意你的编译环境是32位还是64位 库文件也是区分的