Some questions about DSO's...

This is a discussion on Some questions about DSO's... within the Linux Programming forums, part of the Platform Specific Boards category; Hi everyone, I am building a shared library and i'm having some doubts about the whole process of using the ...

  1. #1
    #define WORLD "sad place" LinuxCoder's Avatar
    Join Date
    Mar 2006
    Location
    Portugal
    Posts
    89

    Some questions about DSO's...

    Hi everyone,

    I am building a shared library and i'm having some doubts about the whole process of using the library.

    Here are some things that are bothering me:
    • I know that in windows i must export symbols and stuff, is it better/required that i do this in linux as well? If so, how?
    • Is it possible for me to allow a user of my library to use the library classes without having to include the classes original header file? If so, how?
    • How does one handle with library versioning in terms of linking compatibility and so on?


    Ok, i have googled around but unfortunately i must come to the conclusion that there's not a very good, understandable explanation on these matters.

    Thanks to all for your time and help in advance, Cheers

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    8
    Quote Originally Posted by LinuxCoder
    • I know that in windows i must export symbols and stuff, is it better/required that i do this in linux as well? If so, how?
    Not required, they are all exported unless declared static. There are some special features of GCC that allow functionality similar to Windows but people don't generally use them because it's not portable.

    • Is it possible for me to allow a user of my library to use the library classes without having to include the classes original header file? If so, how?
    Well there has to be something that defines the shape of the class or function prototype or whatever.

    • How does one handle with library versioning in terms of linking compatibility and so on?
    Just look in /usr/lib and you'll see. Usually libraries have the version number in the file name (/usr/lib/libcrypto.so.0.9.7).

  3. #3
    #define WORLD "sad place" LinuxCoder's Avatar
    Join Date
    Mar 2006
    Location
    Portugal
    Posts
    89
    Thanks for you help codie, i was thinking there could be some way of having header files with only the public methods and variables exposed to the user of a library while allowing the private methods and data to be ocluded from the library user.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

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