What is Dev-C++?
Dev-C++, developed by Bloodshed Software, is a fully featured graphical IDE (Integrated Development Environment), which is able to create Windows or console-based C/C++ programs using the MinGW compiler system. MinGW (Minimalist GNU* for Windows) uses GCC (the GNU g++ compiler collection), which is essentially the same compiler system that is in Cygwin (the unix environment program for Windows) and most versions of Linux. There are, however, differences between Cygwin and MinGW; link to Differences between Cygwin and MinGW for more information.
Bloodshed!? First I would like to say that I am not a satanist, that I hate violence/war and that I don't like heavy metal / hard-rock music. I am french, but I do know the meaning of the 'Bloodshed' word, and I use this name because I think it sounds well. If you are offended by the name, I am very sorry but it would be a big mess to change the name now.
I'll be the first to say that the name Bloodshed won't give you warm and fuzzies, but I think it's best if the creator of Bloodshed explains:
Jul 22, 2009 When I check Compiler OptionsPrograms, 'make' references make.exe in Dev-Cbin. But when I open the folder Dev-Cbin, I only see one file (i.e., rm.exe). Is the Makefile suppose to go here? Could you please include the link to where this issue was addressed 'There doesn't seem to be GNU Make file in PATH.' I have created a sample program on C.When i try to run on a different system (win 7 64 bit) it is asking for x64 version of the file (of the executable file created ). I am not talking about the compiler, but about the executable file created after compiling. P.S.2 -I AM NOT MUCH GOOD IN. The application is usually installed in the C: Program Files (x86) Dev-Cpp folder (same installation drive as Windows). Dev-C's complete uninstall command line is C: Program Files (x86) Dev-Cpp uninstall.exe. The application's main executable file is named devcpp.exe and occupies 3.10 MB (3254272 bytes). I save all the files like the source, resource, header and all the files created by the compiler in the same directory, 'C: Dev-Cpp ' from which I create a another directory depending on what Im creating for example 'C: Dev-Cpp NewProject' is where I have saved all the files of a brand new project.and here is what main.cpp contains. Free download cooking games for pc windows 8 windows 7. Jul 09, 2012 How to create an icon for a Dev C project. Icon maker link:http://www.rw-designer.com/onlineiconmaker.php.
There's also a reason why I keep the Bloodshed name. I don't want people to think Bloodshed is a company, because it isn't. I'm just doing this to help people.
Here is a good remark on the Bloodshed name I received from JohnS:
I assumed that this was a reference to the time and effort it requires of you to make these nice software programs, a la 'Blood, Sweat and Tears'.
Peace and freedom,
Colin Laplace
Getting Dev-C++
The author has released Dev-C++ as free software (under GPL) but also offers a CD for purchase which can contain all Bloodshed software (it's customizable), including Dev-C++ with all updates/patches.
Link to Bloodshed Dev-C++ for a list of Dev-C++ download sites.
You should let the installer put Dev-C++ in the default directory of C:Dev-Cpp, as it will make it easier to later install add-ons or upgrades.
Using Dev-C++
This section is probably why you are here.
All programming done for CSCI-2025 will require separate compilation projects (i.e. class header file(s), class implementation file(s) and a main/application/client/driver file). This process is relatively easy as long as you know what Dev-C++ requires to do this. In this page you will be given instructions using the Project menu choice. In another handout you will be given instructions on how to manually compile, link and execute C++ files at the command prompt of a command window. See here.
Step 1: Configure Dev-C++.
We need to modify one of the default settings to allow you to use the debugger with your programs.
Step 2: Create a new project.
A 'project' can be considered as a container that is used to store all the elements that are required to compile a program.
Step 3: Create/add source file(s).
You can add empty source files one of two ways:
Step 4: Compile.
Once you have entered all of your source code, you are ready to compile.
How To Make Exe File In Dev C DownloadClose'.
Step 5: Execute.
You can now run your program. How To Make An Executable File In Dev C++
Disappearing windows
If you execute your program (with or without parameters), you may notice something peculiar; a console window will pop up, flash some text and disappear. The problem is that, if directly executed, console program windows close after the program exits. You can solve this problem one of two ways:
For what it's worth, I use the command-line method.
Step 6: Debug.
When things aren't happening the way you planned, a source-level debugger can be a great tool in determining what really is going on. Dev-C++'s basic debugger functions are controlled via the 'Debug' tab at the bottom of the screen; more advanced functions are available in the 'Debug' menu. Using the debugger:
Dev-C++ User F.A.Q.
Why do I keep getting errors about 'cout', 'cin', and 'endl' being undeclared?
It has to do with namespaces. You need to add the following line after the includes of your implementation (.cpp) files:
How do I use the C++ string class?
Again, it probably has to do with namespaces. First of all, make sure you '#include <string>' (not string.h). Next, make sure you add 'using namespace std;' after your includes.
Example:
That's it for now.I am not a Dev-C++ expert by any means (in fact, I do not teach C++ nor use it on a regular basis), but if you have any questions, feel free to email me at [email protected] How To Make Exe Files
Happy coding!
How To Make Exe File In Dev C MacComments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |