3 ms·
You forgot -Wall. Also, does this enable C++11? And don’t forget to set that NDEBUG macro. All the things above is still a 2 line Makefile. And it is intuitive
by theamk 8y ago
You forgot -Wall. Also, does this enable C++11? And don’t forget to set that NDEBUG macro.
All the things above is still a 2 line Makefile. And it is intuitive, too - you jusy copy your command-line g++ invocation and paste into Makefile.
- Orphis 8y agoThat has nothing to do with the compilation of your program. This is a specific option to use in a specific configuration and specific compilers. So if you want a configuration with some flags like that, then you can have a separate file for it. Each compiler is different after all, some will need different options.