Hi
To link C code with C++ code use the follow MACRO :
all the includes
#ifdef __cplusplus
extern "C" {
#endif
Your code
...
#ifdef __cplusplus
}
#endif
The C++ compiler add sufixx to the function and the C Compiler doesn't add any suffix.
This Macro will help you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.