using shared libs other than QT/KDE.

Bjoern Krombholz bjkro at gmx.de
Thu Apr 13 06:18:15 BST 2000


Serge Lussier wrote:
> 
> My problem is that the only zlib files I have are the shared .so files.
> I don't know how to use shared libs and how it work...
> Is someone cool and kind to be willing to explain to me what I have to
> do ?
> 

First you should have the .so - library file (f.e. libz.so) and a .a file
(libz.a) in one of your lib/ path's. Look into /etc/ld.so.conf to see
wether it is automaticaly used by linker.

Go to Project -> Options -> Linker Options in KDevelop and add "-lz" to
the line at the bottom (without quotes).
The string behind "-l" depends on the name of your .a file - just cut
"lib" & ".a".

Now include the needed header file in your sources and use it's functions.

Bjoern Krombholz






More information about the KDevelop mailing list