Library extension .a/.so

John Vetterli jvetterli-zC6tqtfhjqE at public.gmane.org
Tue Apr 26 14:33:53 UTC 2005


On Tue, 26 Apr 2005, Peter wrote:
> On Mon, 25 Apr 2005, Byron L. Sonne wrote:
>>> What is the difference in libraries ending with extension .a and .so.
>>> Can one convert  from somelib.a to somelib.so?
>> I'd like to know as well - I've tended to think that it's the difference 
>> between static and dynamic, but upon reflection I don't have a good reason 
>> for thinking that. Or if I did, I've forgotten it.
> type 'file somelib.so someother.a' and see

This site gives some info on how to create a shared-object library:
http://www.linux.com/howtos/Program-Library-HOWTO/more-examples.shtml

To convert from libsomething.a to libsomething.so, I'm guessing you would 
have to extract the object files from libsomething.a with the ar program, 
then follow the instructions on that page to use them to build 
libsomething.so.

Not that I have ever tried this.

My 2 cents.
JV
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list