Thread
:
Making a C function pointer work with C-style stack based calling mechanics in C++
View Single Post
xpi0t0s
Mentor
24May2011,12:09
Usually to call C from C++ you just need to extern "C" the prototype:
Code:
extern "C" { Error add(int,int); }
Then the compiler knows not to mangle the name and not to look for a mangled name.