If, on the other hand, he declares main as returning void, then he is in Implementation-Defined Land and will not really be compatible with normal compilers, libraries, and operating systems. OP — simply typing the int before main out explicitly is the correct solution. Dev-C Dev-C is a free IDE for Windows that uses either MinGW or TDM-GCC as underlying compiler. Originally released by Bloodshed Software, but abandoned in 2006, it has recently been forked by Orwell, including a choice of more recent compilers.
![Dev Dev](/uploads/1/2/6/6/126634403/991967152.jpg)
Hi all
I am a noob to C++ and I was getting some source code off the web and this is the second time it has happened, when I compile (Blood Shed Dev) I get a message in the compiler 'permission denied'
'Id returned 1 exit status'
Can anybody help me and tell me what is going wrong please?
'Id returned 1 exit status'
Can anybody help me and tell me what is going wrong please?
Many thanks
HLA91
- 8 Contributors
- forum 12 Replies
- 1,913 Views
- 5 Years Discussion Span
- commentLatest Postby gracevilleLatest Post
Nick Evan4,005
Don't know about Bloodshed, but what is the code suppose to do? Could you show it? What OS are you using?
Edited by Nick Evan: n/a
hello altogether,
my name is Wolfram Pagels, Berlin, Germany
my status is :retired but enthusiastic c++-fan;
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;
after a long break I enjoy to learn c++11;
e.g.: the day before yesterday I got the following message from Dev-C++:
![How To Fix Compiler For Dev C++ How To Fix Compiler For Dev C++](/uploads/1/2/6/6/126634403/220052890.png)
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
How To Fix Compiler For Dev C File
Edited by mike_2000_17: Removed email address. Fixed formatting.
How To Fix Compiler For Dev C Windows
- 4 Contributors
- forum 3 Replies
- 3,586 Views
- 23 Hours Discussion Span
- commentLatest Postby Ancient DragonLatest Post
mike_2000_172,669
Dev Compiler Free Download
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.