Problems with shared libraries

This is a discussion on Problems with shared libraries within the C Programming forums, part of the General Programming Boards category; Hi, I am new to Linux C programming. I have created a shared object file (.so file) and i have ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    1

    Problems with shared libraries

    Hi,
    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..
    Thanks!!!!

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    I would imagine you have to send the other files with it.
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

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

    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, 02:48 PM
  4. windows dll problems
    By manav in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 04-28-2008, 07:24 AM
  5. error LNK2001: unresolved external symbol
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 07-12-2002, 09:45 PM

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