How would I go about making a class internal to a dll? To clarify, how do I make a class that would not go into the definition file and not be part of the library file?
Here is a simplified example of what I want:
In the dll I am working on I do not what any internal classes to be exported, however, they are anyway. I am using mingw 3.2.Code:class MyClass { public: MyClass(); void *MyFunc1(int, int) ... }; //assume that the class has been defined //avoid name-mangling extern "C" { //c functions that I want the dll to export void *DLLEXPORT something(int i) { MyClass stuff; return stuff.MyFunc1(i, 7); } }