Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on Improve g++ compiler flags for debug and release

$
0
0
I'm not sure if -DDEBUG does anything. I'd recommend adding -D_GLIBCXX_DEBUG to debug builds to enable container bounds checking. Also -pedantic-errors (in both) is a good idea to ensure standard compliance. (-pedantc has the same effect, but gives warnings instead of errors, which doens't matter since you have -Werror).

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>