Include something like this def-file to project:
LIBRARY XMath
EXPORTS
xmath_add = _xmath_add@8
xmath_multiply = _xmath_multiply@8
xmath_subtract = _xmath_subtract@8
or#pragma comment(linker, "-export:xmath_add=_xmath_add@8")
#pragma comment(linker, "-export:xmath_subtract=_xmath_subtract@8")
#pragma comment(linker, "-export:xmath_multiply=_xmath_multiply@8")
int xmath_add(int aa, int bb){
return aa+bb;
}
int xmath_subtract(int aa, int bb){
return aa-bb;
}
int xmath_multiply(int aa, int bb){
return aa*bb;
}