Thread: Problems with shared libraries

  1. #1
    Registered User
    Join Date
    Oct 2005

    Problems with shared libraries

    I am new to Linux C programming. I have created a shared object file (.so file) and i have to deploy it on a remote server. I used some other libraries to build it. Do I have to send the other library files as well with it. I might sound as a dumb question but please reply ASAP. Also send some useful links to learn more about the Linux libraries and linux C programming..

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    I would imagine you have to send the other files with it.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Still in the egg

    If the other library files are standart libraries in most cases you mustn't deploy other files. Actually your question is about static and dynamic linking. See the gcc manual page for more information about deynamic and static linking.

    When you statically link your application, the code in the library is added to your application's code. So, whereever you deploy the applications its function codes are with it. On the other hand, in dynamic linking, when you run your application the required codes for your functions are loaded from the system libraries.

    Hope helps...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-06-2009, 12:27 PM
  2. Problem with linked list and shared memory
    By Sirfabius in forum C Programming
    Replies: 10
    Last Post: 11-10-2008, 04:45 PM
  3. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  4. windows dll problems
    By manav in forum A Brief History of
    Replies: 3
    Last Post: 04-28-2008, 06:24 AM
  5. error LNK2001: unresolved external symbol
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 07-12-2002, 08:45 PM