Hi!
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? If not please suggest a good compiler in which I can do a program containing the header files mentioned above. I tried doing the same program in turbo C++ and microsoft visual studio 2010 express and it is working properly. If this problem in Dev-C++ is due to any settings that has to be done, please tell. I have installed Dev-C++ correctly.
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? If not please suggest a good compiler in which I can do a program containing the header files mentioned above. I tried doing the same program in turbo C++ and microsoft visual studio 2010 express and it is working properly. If this problem in Dev-C++ is due to any settings that has to be done, please tell. I have installed Dev-C++ correctly.
Someone, please help me out!:confused:
Support for C11 By default, support for the most recent version of C is not enabled. It shall be explicitly enabled by going to: Tools - Compiler Options Here, select the 'Settings' tab, and within it, the 'Code Generation' tab. There, in 'Language standard (-std)' select 'ISO C 11': Ok that. You are now ready to compile C11! Feb 04, 2016 the compiler option /await does not help, is included. What else I need to make this compile? Edited by ShamanSoft Saturday, January 30, 2016 10:28 AM.
- 5 Contributors
- forum 13 Replies
- 2,086 Views
- 2 Days Discussion Span
- commentLatest Postby Stefano MtangooLatest Post
Recommended Answers
No wonder you're confused.
[QUOTE=confused_one;]
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? … Auto tune microphone for computer.
Jump to Post[QUOTE=confused_one;]
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? … Auto tune microphone for computer.
LOL! @WaltP: Pretty good timing for this thread! Don't you think? https://keenseal345.weebly.com/blog/free-online-auto-tune-voice-changer-no-download.
Yet another example of 'I compile this with DevC++ and it doesn't work, but it works with other IDEs like .'.
@OP: I agree with both posters. Stick to one generation of C++ code, that is, the current standard, …
Jump to PostAll 13 Replies
WaltP2,905
Dev C++ Does Not Compiled
![Compiler Compiler](/uploads/1/2/6/2/126213900/124517754.gif)
![Compile Compile](/uploads/1/2/6/2/126213900/826558217.jpg)
No wonder you're confused.
Dev C Compiler Download
I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++?
You are using 3 different eras of programming
Dev C++ Project Is Not Compiled Error
- 1980's - conio.h from non-Standard C programming. Suggestion - remove it and all functions used from it.
- Pre-standard C++ using iostream.h -- again old and substandard. Upgrade to iostream, no extension.
- namespace std for use with today's standard headers with no extension.
Decide what era you want to compile and fix the code to that standard.
confused_one commented: thank you sir for your suggestion+0
Dev C Does Not Compile Form
Originally released by Bloodshed Software, but abandoned in 2006, it has recently been forked by Orwell, including a choice of more recent compilers. It can be downloaded from:
http://orwelldevcpp.blogspot.com
Installation
Run the downloaded executable file, and follow its instructions. The default options are fine.Support for C++11
By default, support for the most recent version of C++ is not enabled. It shall be explicitly enabled by going to:Tools -> Compiler Options
Here, select the 'Settings' tab, and within it, the 'Code Generation' tab. There, in 'Language standard (-std)' select 'ISO C++ 11':
Ok that. You are now ready to compile C++11!
Compiling console applications
To compile and run simple console applications such as those used as examples in these tutorials it is enough with opening the file with Dev-C++ and hitF11
.As an example, try:
File -> New -> Source File
(or Ctrl+N
)There, write the following:
Then:
File -> Save As..
(or Ctrl+Alt+S
)And save it with some file name with a
.cpp
extension, such as example.cpp
.Now, hitting
F11
should compile and run the program.If you get an error on the type of
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.