[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown references -> QT 2.0.x

Felix Kollmann wrote:

> if I link a programme for QT 2 the linker can't find references for the
> PNG library:
>         deflate
>         inflate
>         inflateInit_
>         crc32
>         deflateInit2_
>         inflateReset
>         deflateReset
>         inflateEnd
>         deflateEnd
> The programme is linked like following:
>  gcc -lqt -lXext -L/usr/lib/qt/lib -L/usr/lib/X11 -L/usr/X11/lib test.o
> -o test

Those are from zlib. Add "-lz" to your command line.

Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi