3 ms·
Is there a benefit to building C code with a C++ compiler?
by matheusmoreira 7y ago
Is there a benefit to building C code with a C++ compiler?
- colonwqbang 7y agoOnly if your project is already mostly C++ and you would like to use your C++ compiler for everything, to keep the build process simpler.
- flohofwoe 7y agoC++ has some stricter type checking by default, but most of this can be achieved by raising the warning level when compiled as C. Nevertheless I received enough requests to make my C libraries 'C++ compliant' that I gave in :)