[Qt-interest] compilation problem
Arnold Krille
arnold at arnoldarts.de
Wed Jul 21 22:24:22 CEST 2010
On Wednesday 21 July 2010 21:44:43 Colin S. Miller wrote:
> 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?
.la stands for libtool-archive. If you don't use libtool for building/linking,
you don't need that. And as the compiler/linker itself isn't using libtool, it
only needs the .so. After all the .so-file is what matters.
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100721/5913a4a8/attachment.bin
More information about the Qt-interest-old
mailing list