[Qt-interest] compilation problem

Colin S. Miller no-spam-thank-you at csmiller.demon.co.uk
Wed Jul 21 21:44:43 CEST 2010


Samira Chaouki wrote:
> Hi,
> 
> I have this error when I’m trying to compile a simple hello world program
> 
> /g++ -Wl,-O1 -o hello main.o    -L/usr/lib -lQtGui -lQtCore -lpthread/
> 
> //usr/bin/ld: cannot find -lQtGui/
> 
> /collect2: ld returned 1 exit status/
> 
> /make: *** [hello] Erreur 1///
> 

Don't you normally link against libqt-mt.la or libqt.la, not the .so files directly?


HTH<
Colin S. Miller






More information about the Qt-interest-old mailing list