Dev-C is Free Software distributed under the GNU General Public License. This means you are free to distribute and modify Dev-C, unlike most Windows software!Be sure the read the license. Please support Dev-C by making a donation! The money will be shared between the active developers and the support manager in order to help us continue improving Dev-C from day to day.
|
Dev-C++ is Free Software distributed under the GNU General Public License.
This means you are free to distribute and modify Dev-C++, unlike most Windows software! Be sure the read the license.
Please support Dev-C++ by making a donation ! The money will be shared between the active developers and the support manager in order to help us continue improving Dev-C++ from day to day.
Click on the button below to make a donation using Paypal or your Credit Card :
Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2 Dev-C++ version 4.9.9.2, includes full Mingw compiler system with GCC 3.4.2 and GDB 5.2.1 See NEWS.txt for changes in this release. Download from: |
Dev-C++ 5.0 beta 9.2 (4.9.9.2), executable only (2.4 MB) Dev-C++ version 4.9.9.2, without Mingw compiler system and GDB. Get this one if you already have a previous Dev-C++ beta or already a compiler. See NEWS.txt for changes in this release. Download from: |
Dev-C++ 5.0 beta 9.2 (4.9.9.2), source code (1.6 MB) Dev-C++ version 4.9.9.2 source code for Delphi. Download from: |
Yes, Dev-C++ 4 is still available. There are the downloads:
Binaries:
Source code:
The SourceForge project page is located here. The bleeding edge source code is located at the SourceForge CVS.
Boost is a set of high-quality libraries that speed up C++ development. They are included in most linux distributions and some of them are already part of the C++ Standard Library. In the Windows environment, you have to install them in order to take advantage of them.
If you are using Microsoft Visual Studio, you can avoid the following steps by downloading a binary version from http://www.boostpro.com/download/ and skip to the Testing section in this document.
Before we start, you may want to read my previous article on installing a C++ compiler on Windows.
Download and unzip the boost source code from http://www.boost.org/. I will unzip it to C:optc-libs, but you can use the one you prefer. After you unzip, open a command line and go to your selected folder:
Start bootstrap.bat and specify your toolset. Toolsets supported by this script are: borland, como, gcc, gcc-nocygwin, intel-win32, metrowerks, mingw, msvc, vc7, vc8, vc9, vc10, vc11. In my case I will use the mingw toolset:
All required files for compilation should be ready. Now you have to define a installation directory and specify a toolset. Toolsets here are a little bit different from the ones we used before:
Since I’m using MinGW I will use gcc.
At this time you can go get a cup of coffee. Or maybe two.
When compilation ends, go to your selected installation path (watch out!, this is not the folder where you originally unzipped the source code). You will find two folders: include and lib. Both folders should contain files. That means you are done and ready for the testing phase.
If any of the afore mentioned folders is empty then we have problems. Common problems arise due to selecting the wrong toolset for compiling, so if your lib folder is empty try choosing a different toolset. If error persist, take a look at the compilation output. Errors must be shown there, specially at the last lines of the output.
From your IDE create a file named main.cpp and copy the following text onto it:
In order to let your compiler know where to look for the headers and libraries, you have to follow the next steps. You can usually accomplish them by right clicking on your project and selecting Properties or Options.
Add the following path to your includes list:
Add the following path to your additional library directories list
Important: if you are using Netbeans, you should only type /installation/path/lib (you have to omit the C:). For a very strange reason, Netbeans adds a forward slash at the beggining of the parameter /L used to compile (only when it begins with C:) resulting in an unknown path. This might be fixed in later versions.
If you are using a gnu compiler (that is Cygwin or MinGW), you must also add the specific library to the linker. If you are using Microsoft Visual Studio you can skip this step because it includes the so called auto-linking support. But, in my case, I have to add the following library to my libraries list so the linker performs without complaints:
This file name is composed by:
You are ready. Build the program.
The program you just compiled (and linked) can parse a text file looking for a line starting with the text “Subject:” in it. So to test it, copy and paste the following text into an empty text file and name it test.txt (save it in the folder where your .exe file resides):
Now, from a command prompt type:
If everything goes right you should see the following text:
At this point, boost should be ready on your Windows computer. I suggest you read about this tremendous library since it can help you make your life a lot easier.