Hacker News new | ask | show | jobs
by matheusmoreira 2387 days ago
Is there a benefit to building C code with a C++ compiler?
2 comments

C++ 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 :)

Only if your project is already mostly C++ and you would like to use your C++ compiler for everything, to keep the build process simpler.