.so libraries

This is a discussion on .so libraries within the Linux Programming forums, part of the Platform Specific Boards category; Okay, shared libraries: The .a files in */lib makes sense - ar archives containing object files to be linked into ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    29

    Question .so libraries

    Okay, shared libraries:

    The .a files in */lib makes sense - ar archives containing object files to be linked into the program making use of the library. But what is the .so files? (e.g. libc.so.6)

    Thanks

    Skarr

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    .so = Shared library file (Unix)(equivalent to a Windows DLL)
    http://www.tldp.org/HOWTO/Program-Li...libraries.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    29
    Yes, but what kind of code goes in the .so libraries?

  4. #4
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Same as the code in a *.a file.
    OS: Linux Mandrake 9.0
    Compiler: gcc-3.2
    Languages: C, C++, Java

    If you go flying back through time and you see somebody else flying forward into the future, it's probably best to avoid eye contact.

  5. #5
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    .so = shared object
    like when you compile a program, first it makes the object code, this object code is then *shared* with the rest of the system through .so.

    Linux Magazine did a nice article explaining programing with .so's

    http://www.linux-mag.com/
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem creating .so
    By k0k33 in forum C Programming
    Replies: 7
    Last Post: 04-27-2009, 05:41 AM
  2. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 02:48 PM
  3. .so files having no symbols
    By manav in forum Linux Programming
    Replies: 4
    Last Post: 05-03-2008, 02:10 AM
  4. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 09:15 AM
  5. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 07:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21