PDA

View Full Version : Undefined Reference to q libraries



powerserg
11th August 2010, 15:14
Hello,
I am one day new to QT. I just installed Qt creator 2.0. I am trying to run one of the example projects that came with the install package but I am getting undefined references to Qlabel, QWidgets, QFontMetrics and many more. If I modify the .pro file as such LIBS += -l<QLabel>. I then get this error

The system cannot find the file specified.
mingw32-make[1]: *** [debug\fridgemagnets.exe] Error 1
mingw32-make: *** [debug-all] Error 2
The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project fridgemagnets (target: Desktop)
When executing build step 'Make'[/SIZE]


I also added to the path variables C:\Qt\2010.04\qt\lib
Any ideas??
Thanks

Ginsengelf
11th August 2010, 15:59
Hi, you need QtGui and QtCore. Those contain the most important classes.

Ginsengelf

powerserg
11th August 2010, 16:26
I searched my system and found QtCore4.dll and
QtGui4.dll here C:\Qt\2010.04\qt\bin and here C:\Qt\2010.04\bin. Presumably the 4 is a later version?
Additionally I included those directories in the project PATH build environment. and removed the reference to LIBS += -l<QLabel> in the pro file becuase I added that to see if it would fix it. If I do add the LIBS += -l<QLabel> referecne, I get build error " cannot find the file specified" debug\fridgemagnets.exe] Error 1
Thanks