if you want to build a dll with import names, that are consistent between different compilers, you need
to build it as C code, which then uses the C naming conventions.
useCode#ifdef __cplusplus
extern "C"
{
#endif
.... // here are your exported function names
#ifdef __cplusplus
}
#endif
infos
http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
thanks for your comments.
i finally got it working with a .def file like this:
EXPORTS
plugMain = plugMain@12 @2
plugMain@12 @1
and the additional linker option:
--input-def my.def
i also tried withI wonder if this would all have been resolved much more easily if someone else had noticed the extraneous space and missing dash here. It should be "-Wl,--add-stdcall-alias".
-Wl, -add-stdcall-alias
but still i only get my function exportet once.
It should be "-Wl,--add-stdcall-alias".