Linking to external Libraries

Tarjei Knapstad tarjeik at
Wed Sep 17 11:30:11 BST 2003

On Tue, 2003-09-16 at 22:37, Israel Fdez Cabrera wrote:
> Hi
> May be you are familiar with the way linux use the shared libraries. you
> may have one or both of the following, a shared object .so or an object
> library, .la. 
> Linux names libraries using the "lib" word + "library name" + ".so",
> (asume the library is in a standard location, /lib/, /usr/lib, etc...)
> Supouse U want to with pthread library, the library name is
>, ok, then Project Menu->Project Options (F7) -> Compiler
> Options -> Linker Flags, Add this:
> -lpthread
> "-l" + "library name"
> with no lib or

That's not quite correct. You need to add -lpthread in Project
Menu->Project Options (F7) -> Linker Options -> additional libraries

If the library resides in a path not know to ld (i.e. not listed in
/etc/, then you need to add that path in Project
Menu->Project Options (F7) -> Compiler Options -> Linker Flags using:



to unsubscribe from this list send an email to kdevelop-request at with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list