Re: [anjuta-list] Dynamic library (.so)



Hi, Jens,

On Mon, Mar 14, 2016 at 7:53 AM, Jens Mühlenhoff <j muehlenhoff gmx de> wrote:
Hi Igor,

Am 14.03.2016 um 00:48 schrieb Igor Korot:
However, when I tried to select "Target Type", I couldn't find anything related.
The closest I did find is "Shared Library (Libtool)". But giving
target name, then
selecting it and hitting "Add", I am getting "Shared library target name must
be of the form libxxx.la".

Why the extension is ".la" and not ".so"? Isn't it what the shared library name
should be on Linux?

Keep in mind that I don't have too much experience with autotools & friends.


The autotools friend you are getting to know here is libtool.

.la files are for platform independent creation of dynamic libraries.

Libtool will create an .so on Linux, a .dll on Windows, etc.

It can also be used for static libraries. It's a tool that makes libs, hence the name libtool :)

Some links:

https://en.wikipedia.org/wiki/GNU_Libtool

http://www.freesoftwaremagazine.com/articles/building_shared_libraries_once_using_autotools

https://stackoverflow.com/questions/1238035/what-are-libtools-la-file-for

Thank you for the reply. It is better now.

But what about my second question? IIUC, Anjuta will create .so file in:

<my_project>/Debug/<my_so_project>

And so, when I try to run the program and load the library, will it
fail? Or Anjuta will
add the library search path and the code will be executed?

If the code will fail - how do I tell Anjuta to produce the library in
the proper directory:

<my_project>/Debug/src?

Thank you.


--
Mit freundlichen Grüßen
Jens Mühlenhoff


_______________________________________________
anjuta-list mailing list
anjuta-list gnome org
https://mail.gnome.org/mailman/listinfo/anjuta-list



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