最近要写
串口通信程序,准备用qextserialport-1.2win-alpha,发现直接编译qextserialport.pro时候会报错.
qextserialenumerator.obj:-1: error: 无法解析的外部符号 __imp__RegQueryValueExW@24,该符号在函数 "private: static class
QString __cdecl QextSerialEnumerator::getRegKeyValue(struct HKEY__ *,unsigned short const *)" (?getRegKeyValue@QextSerialEnumerator@@CA?AVQString@@PAUHKEY__@@PBG@Z) 中被引用
qextserialenumerator.obj:-1: error: 无法解析的外部符号 __imp__RegCloseKey@4,该符号在函数 "private: static void __cdecl QextSerialEnumerator::setupAPIScan(class QList<struct QextPortInfo> &)" (?setupAPIScan@QextSerialEnumerator@@CAXAAV?$QList@UQextPortInfo@@@@@Z) 中被引用
RegQueryValueEx 问题在qextserialenumerator.cpp中用到了RegQueryValueEx 和RegCloseKey,这应该是windows下的东东,网上查了下所需要的
头文件,发现包含了也
没有用,
那位大虾知道什么原因么?
[ 此帖被fire_ball在2010-06-17 15:41重新编辑 ]