Import libraries to use with classes?

Started by methodic, January 13, 2009, 07:33:44 PM

Previous topic - Next topic

methodic

Is it possible to import a shared library and use the namespaces/classes? I'm not very familiar with OOP and I've always imported shared libraries that map to a specific function.



Thanks in advance.

pjot

#1
If you are talking about libraries created with C++, then this is impossible.



http://www.isotton.com/devel/docs/C++-dlopen-mini-HOWTO/C++-dlopen-mini-HOWTO.html">http://www.isotton.com/devel/docs/C++-d ... HOWTO.html">http://www.isotton.com/devel/docs/C++-dlopen-mini-HOWTO/C++-dlopen-mini-HOWTO.html



Except when the C++ source uses 'extern C'. But then you have to be lucky!



Regards

methodic

#2
Ah, bummer. Thanks for the info -- that helped clear it up for me.