|
From: Greg C. <chi...@mi...> - 2003-08-30 15:57:15
|
> Dinand Vanvelzen wrote: > > I have been trying to get a DLL exporting classes correctly for 5 days now with several friends of mine without any success. > The DLL is compiled in MinGW and has C functions and C++ classes as exports. The problem is this: > A number of classes have missing member functions,.. they don't get exported for some reason. One thing we noticed is > that the problem classes are the ones with virtual member functions. Altough some classes with virtual member functions do > work. By missing exports i mean that member functions that are not in the .def file but they should be. It's hard to guess without knowing exactly what you're doing. A self-contained, minimal test case would be most helpful. Charles Wilson maintains 'dllhelpers', which gives examples that might help. Get the latest version you can find, and be sure it uses '-shared' instead of the deprecated dllwrap. I specify __declspec(dllexport) and __declspec(dllimport) explicitly because that seems to be the most robust method. |