Wednesday

How to set CodeBlocks version 12.11 to compile and run a C++11 source code file with -std=c++0x of GNU GCC Compiler?

Do the following steps:
  • Open the CodeBlocks program
  • Write a C++11 source code file
  • Click on Menu > Settings > Compiler…
  • Make sure the Global compiler settings icon is selected from the LHS icons menu
  • Check if Selected compiler: GNU GCC Compiler
  • Check if Compiler settings tab is being selected
  • Under the Compiler settings tab, check if Compiler Flags tab is being selected
  • Check if Categories: <All categories>
  • Tick the box: Have g++ follow the coming C++0x ISO C++ language standard [-std=c++0x]
  • Click OK button to close the Compiler settings window
  • To test it, click the "Build and Run" icon from the toolbar
--

No comments:

Newton-Raphson Method in C++

The Newton Raphson Method is an open method used to find the roots of a function. It employs the technique of linear approximation and invol...