Online C99 Compiler, Online C99 Editor, Online C99 IDE, C99 Coding Online, Practice C99 Online, Execute C99 Online, Compile C99 Online, Run C99 Online, Online C99 Interpreter, Compile and Execute C99 Online (GNU GCC v7.1.1). How to enable c99 and c11 on gcc? Ask Question Asked 5 years, 10 months ago. Active 5 years, 10 months ago. Note: use option -std=c99 or -std=gnu99 to compile your code Now my question is this how to use the above option and enable c99 and c11? Compiling gcc c. Suppress warning “-std=c99 is not for C”? Ask Question Asked 2 years, 6 months ago. /imageline-gross-beat-vst-download.html. Active 2 years, 6 months ago. Viewed 843 times 1. I use Orwell Dev.
hello altogether,
my name is Wolfram Pagels, Berlin, Germany
my status is :retired but enthusiastic c++-fan;
I use Dev-C++ since 3 month ago; in the 70th I programmed in Fortran;
after a long break I enjoy to learn c++11;
e.g.: the day before yesterday I got the following message from Dev-C++:
My second question to you: * h o w to enable (these) options at my installed and running actual mingw compiler as part of Dev-C++ IDE ?
Thank you in advance for your time,
yours sincerely
Well, the answer to your problem (but not to your question) is to change your IDE. Dev-C++ is far too old to support C++11. The MinGW GCC version that ships with Dev-C++ is version 3.4.2, which is really old. Decent support for C++11 starts roughly from 4.6.0, but since it is still experimental, the newer the better. Currently, you can get 4.7.1 version through '>TDM-GCC ports. I recommend switching to '>CodeBlocks, which you can download as an installer that includes TDM-GCC 4.7.1. That should allow you to have decent C++11 support.
As for setting compiler options, you typically have to navigate the 'Build Configuration' or 'Project Properties' or similar panels. Usually, you will find a place to put 'custom compiler options' where you can place the exact command-line compiler option (like -std=c++11
), that is, if you can't find a checkbox for the particular option you need.
http://orwelldevcpp.blogspot.com
Tools -> Compiler Options
F11
.File -> New -> Source File
(or Ctrl+N
)File -> Save As..
(or Ctrl+Alt+S
).cpp
extension, such as example.cpp
.F11
should compile and run the program.x
, the compiler does not understand the new meaning given to auto
since C++11. Please, make sure you downloaded the latest version as linked above, and that you enabled the compiler options to compile C++11 as described above.