how to use a dynamical linked library in C++ program in Linux

I have a dynamically linked library, providing some functions needed in my project. I have successfully imported it into my VC ++ 6.0 project. Now, i am translating the project into pure C++ (such as avoiding using MFC classess) in Linux box.

Does anyone know if it makes sense to try to use the library in Linux.

Thanks

These are some introductions of "shared object".

http://www.linux.com/howtos/Program-Library-HOWTO/shared-libraries.shtml
http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html

Best regards,
Iliyan Varshilov

I have an issue with using C++ in shared libraries and exposing name mangled exports. There is no problem with using C style exports and having the interface to the library follow C constaints and using C++ internally within the library.

C++ suffers from a number of limitations such as the fragile base class problem, non standard name mangling schemes, different vtable layouts between compilers that prevent it being a true language for components.

There can also be problems with C++ in shared libraries if loaded by an application written in C or a different C++ compiler due to initialisation of static objects not working.

How are you intending to write/generate your 'export' file?