3 ms·
You don't have to; C++ can work just fine with object files using C name mangling, so it's no problem to mix C and C++ in the same project even if the source fi
by wheels 18y ago
You don't have to; C++ can work just fine with object files using C name mangling, so it's no problem to mix C and C++ in the same project even if the source files are compiled with different compilers.
- neilc 18y agoSure, although that's not the C++ <=> C compatibility story that was originally intended, AFAIK. Calling back and forth between C++ and C isn't entirely trivial, either (exceptions, longjmp, etc.)