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; Dev C++ Compiler Download
For this you have to follow four simple steps: Go to Tools Tab. Select Compiler Options. Go to General tab. Check the checkbox named 'Add following commands when calling the compiler', write this statement -std=c11, and then press OK. I am using Dev C v5.6.1 IDE on Windows7. I have written a C code which has hundreds of line that are displayed as output on screen. The buffer size of Console Windows is small and I cannot view the initial printf statements. I tried it changing from 'properties' option, but it didn't help. Colors are bit-encoded. If You want to change the Text color in C language There are many ways. In the console, you can change the properties of output.click this icon of the console and go to properties and change color. The second way is calling the system colors.
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
Dev C++ Compiler Online
Edited by mike_2000_17: Removed email address. Fixed formatting.
mike_2000_172,669
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.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2021
Categories |