How do I load a shared object in C++?
I have a shared object (a so - the Linux equivalent of a Windows dll) that I'd like to import and use with my test code. I'm sure it's not this simple ;) but this is the sort of thing I'd like to do.. #include "headerforClassFromBlah.h" int main() { load( "blah.so" ); ClassFromBlah a; a.DoSomething(); } I assume that this is a really basic question but I can't find anything that jumps out at me searching the web. There are two ways of loading shared objects in C++ For either of these methods you would always need the header file for the object you want to use. The header will contain the