I'm creating a plugin DLL using c++ in Eclipse.
When trying to load the plugin I get an error:
?CTC_Cleanup@YAXXZ not found. Function is not available in myplugin.dll
When comparing another working plugin with my plugin using Dependency Walker I notice that the function name in the other plugin is: "void CTC_Cleanup(void)", enabling "Undecorate C++ functions" => "?CTC_Cleanup@YAXXZ".
In my plugin the function name is: "CTC_Cleanup", enabling "Undecorate C++ functions" makes no difference.
My C++ function declarations in the .h file are all decorated with "__declspec(dllexport)" and surrounded using
extern "C" {
...
...
...
}
/Kristofer