Thread: what is a " *.so " file?

  1. #1
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    what is a " *.so " file?

    are .so files related to static libraries?

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    No. .so files are libraries meant to be linked dynamically.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    ok , just learnt what are static and dynamic libs.. if i know the loc of a .so file. how do i link it in GCC?

  4. #4
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    let me elaborate...
    i have a libacml.a file and a libacml.so file ,both in the same directory.
    and at the prompt :

    Code:
         gcc prog.c  -L<actual path to this dir >  -lacml
    which one will it link and how do i specify which one to be linked.

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    I believe it will choose dynamic linking when possible unless you give gcc the -static option
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM