shared library

mazzone mazzone at ge.infm.it
Wed Dec 10 18:13:40 GMT 2003


hi all,

i'm getting problems by linking to a shared library made by me.

here what i did:

i created a shared library:

libsomelib.so.0.0.0

and i copied it in the /usr/local/lib directory; there i made two symbolic 
links to it named:

libsomelib.so
libsomelib.so.0

the library works, in fact doing:

ld -t -lsomelib

i obtain:

ld: mode elf_i386
-lsomelib (/usr/local/lib/libsomelib.so)
ld: warning: cannot find entry symbol _start; not setting start address

that means the linker is able to find the library.

Then i made a new project on kdevelop; there i created a special folder to 
contain the header files of the shared library;  in the Project->Options i 
added the line:

-lsomelib

in the "c++ compiler flags" section.

But on compiling i get this error:

c++: /usr/local/lib/.libs/libsomelib.so: No such file or directory 

what's going on? why it's looking at .libs directory?

thanks 
                                     f



-
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