Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set C++ compiler flags in Visual Studio(2015

Tags:

c++

I want to set some compiler flags in visual studio 2015 for a C++ program but I can't see how. Using another IDE (CodeBlocks) I can select the following with a tick box:

Have g++ follow the C++11 ISO C++ language standard

Also, I can create my own new flag (with name, Compiler flags and linker flags set )

How can I modify and create these two flags on VS2015 ?

I've checked https://msdn.microsoft.com/en-us/library/hhzbb5c8.aspx?f=255&MSPPError=-2147217396 but no luck.

**here is a picture of codeblocks ide and compiler settings enter image description here

**edit here is VS2015 configuration settings enter image description here

like image 643
Aindriú Avatar asked Jan 28 '17 10:01

Aindriú


1 Answers

You can add options by selecting the Project properties -> Config Properties -> C/C++ -> Command Line, and then add them to the bottom section "Additional Options".

like image 99
Steve Smith Avatar answered Nov 15 '22 07:11

Steve Smith