What exactly is a 'shared object' in Linux ?


Results 1 to 5 of 5

Thread: What exactly is a 'shared object' in Linux ?

  1. #1
    Join Date
    Oct 2001
    Location
    Pune,Mah,India
    Posts
    90

    Question What exactly is a 'shared object' in Linux ?

    Hello,
    I want to know what is a shared object in linux.Is it that data structures in DLLs are know as shared objects in Linux ?An example or a link will certainly be helpful.
    Thanks in advance.
    Windoze Rules,Linux will.

  2. #2
    Join Date
    Nov 2002
    Location
    PA
    Posts
    56

    Shared Objects

    Shared objects are binary libraries...they replace Dll's. If you are compiling something that is "missing a shared object" then either search the internet to find out what library it is and install it, or run 'ldconfig' so it is indexed...
    One OS to rule them all,
    One OS to find them.
    One OS to call them all,
    And in salvation bind them.
    In the bright land of Linux,
    Where the hackers play.
    (J. Scott Thayer, with apologies to J.R.R.T.)

  3. #3
    Join Date
    Oct 2001
    Location
    Pune,Mah,India
    Posts
    90

    Thumbs up Thanks.

    Thanks for the reply.
    Actually i am not using a shared lib in my prog.I just wanted to know what is a shared object ?and what is the difference betwn dll and shared objects at runtime.Any help on this please...
    Windoze Rules,Linux will.

  4. #4
    Join Date
    Dec 1999
    Location
    Toronto
    Posts
    39,307

    Re: Thanks.

    Originally posted by pranavpeshwe
    Any help on this please...
    G4L search results for 'shared object'. The first one looks good.

    Also moving to /dev/random as you might receive more responses there.
    SEARCH FIRST... ASK SECOND Read the JL 'Community Help Posting Guidelines' before posting in the forums.

    Precompiled Redhat NTFS Modules

    Linuxplanet Tutorials

    If Linux doesn't have the solution, you have the wrong problem. ... Please do not send me a PM asking for help...

    Please read the search suggestion thread in JL Ideas

  5. #5
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    The difference between a shared object and a .dll is that they're used on different operating systems. .DLL's are in Microsoft's PE format, while shared objects (.so's) are in ELF format. Both of these files accomplish the same tasks, they just use a different internal structure to do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •