Thread: .so libraries

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