|
Re: Cannot Mix C Code
Unless we see more of the source, there's not much more we can recommend. You can post relevant sources here or PM me for help.
Your extern "C" declarations look fine, but how are you compiling the C code? is it being run through g++ or gcc? If it's being compiled as C++ by the IDE but you're trying to reference it using extern "C", then yes, name mangling will surely be an issue.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
|