Hi,
I'm building a simple dll and have a small Problem which is probably more a mingw than a CB problem. The DLL exports a function:
bool DistributeValue(int *pValues)
which is exported automatically as
In VisualC++ its enough to place a def file with the alias in the source folder
With mingw/CB this is obviously not. What will I have to do to export the function with a name I want?
Env: WinXP, CB1.0 (31.08.06), mingw32 3.4.4
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.
use
#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