makefile - Calling a C++ function from a C program -


How can I call the C ++ function from the C program, is it possible ?, and if this is how I Can i Thank you.

If you are trying to call a C ++ function from C, then you might Running Issues The compiler does this to support function overloading and other features of C ++.

You can notify the C ++ compiler to use extern "C" that the function CMACInit) will be called by the c code :

  extern "c" CMACInit () {...}  

When pronounced this way, the C ++ compiler is confused with the name And will set everything so that the function can be called from the C code.


Comments