Wednesday 26 April 2017

How to set c++11 or c++14 flag in compiler in CodeBlock

Hello All,


Many times you come across the word of std=c++11 or std=c++14 in compiler world.It is actually compiler flag that contain all functionality which release on that version.Number comes from year.

every few compiler with newer functionality. So In any software we need to set flag to use those functionality if it is not set by default. Here I will show you for Code Block software or IDE.

1) Open Code block IDE .Page will Look like below image.




2) Then you need to go "Settings" Tab in upper status bar.Then select "Compiler.." option.

3) Now you can see various compiler version available. From this You can enable any compiler which available.Here I have tick std=c++11 version.Now press OK.






No comments:

Post a Comment