*.so archives and *.a archives

*.so archives and *.a archives

Post by G. Hugh SO » Wed, 08 Jan 1997 04:00:00



Hi,

What are *.so files?  It used to be *.a files.

I found an rpm file for Lapack.  There, the archived file is not
liblapack.a, but liblapack.so.  What is the postfix "so"?  Can I just
use this file as if it is *.a file?

Thanks.

G. Hugh Song

 
 
 

*.so archives and *.a archives

Post by Alex Butch » Wed, 08 Jan 1997 04:00:00




Quote:

>Hi,

>What are *.so files?  It used to be *.a files.

*.so files are shared libraries (aka DLLs). *.a files are static
libraries. Links to shared libraries are resolved at load time of the
binary, rather than at link time. This results in smaller binaries,
greater code-reuse and many other benefits. Of course, to run the
dynamically linked binary, you need all the libraries it's linked to
dynamically.

Quote:

>I found an rpm file for Lapack.  There, the archived file is not
>liblapack.a, but liblapack.so.  What is the postfix "so"?  Can I just
>use this file as if it is *.a file?

Just use -L<path to lib directory containingliblapack.so> -llapack in
your link line. Oh, and read the release notes for binutils somewhere
on TSX-11, if that doesn't work out-of-the-box.

As for what 'so' stands for? Dunno - Shared Object?

Quote:

>Thanks.

>G. Hugh Song

Regards,
Alex.
--
I'm looking for employment in Bristol, Bath, Reading or Cambridge, UK.
Please see <http://www.cse.bris.ac.uk/~ccajb/cv.html> for more details
-=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=-
Alex Butcher - Micro Support Technician  Tel +44 (0)117 928 9000 x3038
Computing Service, University of Bristol, Tyndall Ave. Bristol BS8 1UD

 
 
 

1. linking static archive to another static archive

Hi,

Is linking a static library to another static library possible?

I have a static library, bar.a.  I have another library foo.a that uses
some of the functions in bar.a

Could someone show me how I can link foo.a to bar.a?

On Solaris, I get "embedded archive not possible".  I think under AIX,
linking an archive to another archive is possible.  Is this a
platform-dependent behavior?

In the FAQ, it talks about exploding both static archives into another
directory and then recombining them.  Is this the problem I'm
encountering?  What if I'm unable to do this?

Thanks for any help,

K.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Can't setup XFree86 on Redhat-Display problem

3. ufsdump archive --> tar archive ?

4. Network packet loss explanation?

5. undable to locate archive symbol table: Format error: archive fmag...

6. I need some X help please

7. Changing .zoo archive to .lzh archive: help!

8. PRB: Building libraries & dlopen() et al.

9. COMMERCIAL: Linux Archive CD Set $4.49

10. Linux Software Archive + more

11. Linux archives

12. Archive 4350xt Tape on SS20

13. COMMERCIAL: Linux Internet Archives: 4 CD set, $19.95