PDA

View Full Version : Qextserialport on windows



sumitmak86
7th September 2012, 08:26
hii

i am trying to use qextserialport in Qt. i have downloaded the library from sourceforge.net ("http://sourceforge.net/projects/qextserialport/")
then i open the qextserialport.pro in qt creator and after running it ,qt creator give some error as follows

1.qextserialenumerator.obj:-1: error: LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "private: static class QString __cdecl QextSerialEnumerator::getRegKeyValue(struct HKEY__ *,unsigned short const *)" (?getRegKeyValue@QextSerialEnumerator@@CA?AVQStrin g@@PAUHKEY__@@PBG@Z)

2.qextserialenumerator.obj:-1: error: LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "private: static void __cdecl QextSerialEnumerator::setupAPIScan(class QList<struct QextPortInfo> &)" (?setupAPIScan@QextSerialEnumerator@@CAXAAV?$QList @UQextPortInfo@@@@@Z)

3.build\qextserialportd.dll:-1: error: LNK1120: 2 unresolved externals


i am using Qt4.8.2 on windows 7

please guide me how to use qextserialport lib

Thanks

high_flyer
7th September 2012, 09:24
It looks like your windows includes are not kicking in, probably due to a missing define.
Have a look a QextSerialPort documentation, and header files, see which defines need to be defined for a windows build.

Lesiok
7th September 2012, 13:24
hii

i am trying to use qextserialport in Qt. i have downloaded the library from sourceforge.net ("http://sourceforge.net/projects/qextserialport/")
then i open the qextserialport.pro in qt creator and after running it ,qt creator give some error as follows


This page is inactive. Go to new qextserialport (http://code.google.com/p/qextserialport/)