I am a newbie in C++ programming. When compiling I never use any option.
This is my day to day command:
g++ MyCode.cc -o MyCode
For safety practice what's the best option to use?
I am a newbie in C++ programming. When compiling I never use any option.
This is my day to day command:
g++ MyCode.cc -o MyCode
For safety practice what's the best option to use?
-pipe, it speeds up compilation a little bit. Also -O2, which speeds up execution.
“-Werror”: treats all warnings as errors so you have to fix them. Incredibly valuable.
We always use