Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
matheusmoreira
6y ago
0 comments
Save
Share
Is there a benefit to building C code with a C++ compiler?
0 comments
2 comments · 2 top-level
top
newest
oldest
flohofwoe
6y ago
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 :)
colonwqbang
6y ago
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.
j
/
k
navigate · click thread line to collapse