Michael DOUBEZ wrote:
Sudhanshu a écrit :
I have a c code that uses "class" as the variable name in a function
prototype
Perhaps extern "C" is enough if the compiler doesn't interpret
'class' in C part ?
No, it's not. That only controls linkage, not compilation.
The best solution would be to modify the header.
Or to compile the C code to an obj file and link together, possibly
with a C++ wrapper function.
Brian