Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Sahil# on September 05, 2012, 10:51:29 am

Title: Error: cannot find -lQtCore; cannot find -lQtGui
Post by: Sahil# on September 05, 2012, 10:51:29 am
I'm newbie here so sorry if this is the wrong place. I've been using Code::Blocks for last few months. I've successfully used SDL and SFML like libraries. I've also worked with Qt for a short period of time. C::B's simplicity really attracted me. So I downloaded Qt libraries 4.8 from official site and created a project using in built template. But it gave me following error.
 EDIT:
Okay I tried again and again and finally managed to create a Qt project from default template.
When I tried to compile I got following error

-------------- Build: Debug in qt ---------------

Linking console executable: bin\Debug\qt.exe
h:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lQtCore
h:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lQtGui
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
 

Title: Re: Error: cannot find -lQtCore; cannot find -lQtGui
Post by: Sahil# on September 05, 2012, 02:16:21 pm
I'm newbie here so sorry if this is the wrong place. I've been using Code::Blocks for last few months. I've successfully used SDL and SFML like libraries. I've also worked with Qt for a short period of time. C::B's simplicity really attracted me. So I downloaded Qt libraries 4.8 from official site and created a project using in built template. But it gave me following error.
 EDIT:
Okay I tried again and again and finally managed to create a Qt project from default template.
When I tried to compile I got following error

(http://s18.postimage.org/wndgv0fih/err.jpg)
I followed instructions from
http://egyptianvulture.blogspot.in/2011/01/codeblocks-qt-windows.html but still fail :(