Linking to external Libraries
Tarjei Knapstad
tarjeik at chemcon.no
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
> libpthread.so, ok, then Project Menu->Project Options (F7) -> Compiler
> Options -> Linker Flags, Add this:
>
> -lpthread
>
> "-l" + "library name"
>
> with no lib or .so.xxx
>
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/ld.so.conf), then you need to add that path in Project
Menu->Project Options (F7) -> Compiler Options -> Linker Flags using:
-L/path/to/the/library/i/need
Cheers,
--
Tarjei
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list