Reputation: 3730
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
**edit here is VS2015 configuration settings
Upvotes: 8
Views: 44731
Reputation: 2270
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".
Upvotes: 25
Reputation: 561
Qouted from this link.
You can set compiler options for each project in its Property Pages dialog box. In the left pane, select Configuration Properties, C/C++ and then choose the compiler option category.
Update: To add language specification use /std flag. Append it at the end of existing flags in Command Line option page.
Upvotes: -1