http://cpp.gantep.edu.tr
C++ resources. Faculty of Engineering, University of Gaziantep
|
MAIN - Tutorials - Howtos - nmPrimer - Misc - Links - Contacts |
Last modified: Sun, 01 Nov 2009 12:49:44 +0200
Howto: Compiling with the Dev-C++ compiler (under Windows)
In this how to, compilation of C++ sources will be demonstrated using the Bloodshed Dev-C++ compiler under Windows. 1. What is Dev-C++ 2. How to download Dev-C++ 3. How to open and compile a C++ source file with Dev-C++ 4. Disappearing Windows 5. F.A.Qs 1. What is Dev-C++
Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language.
It uses Mingw port of
GCC (GNU Compiler Collection) as its compiler.
It creates native Win32 executables, either console or GUI (Graphical User Interface).
Dev-C++ can also be used in combination with Cygwin. 2. How to download Dev-C++ You can use the following links to download the program (9 MB):
3. How to open and compile a C++ source file with Dev-C++ After you download and install Dev-C++ (under default folder C:\Dev-Cpp), you can open a new (c++) source file as shown in the figure given below: Then type your c++ code and save it to the hard drive (for example C:\windows\desktop\cpp). To compile your source file (say hello.cpp), press Compile button or use Ctrl+F9 key combination.To run the compiled (executable) file press Run button or use Ctrl+F10 key combination. Note that executable file will have the name hello.exe and it would be in the same folder with the source file hello.cpp. 4. Disappearing Windows If you run your program, you may notice something stange; a console window will pop up, flash some text and disappear suddenly. The problem is that, if directly executed, console program windows close after the program exits. You can get around this problem one of three ways:
5. F.A.Q.s Q. How can I add line numbers? |
please send us you comments/questions/corrections |