| 1 |
What follows is a description of the steps required to install a compiler for use in Code::Blocks. |
| 2 |
|
| 3 |
Unix platforms |
| 4 |
---------------- |
| 5 |
Code::Blocks comes with pre-configured settings for the GNU GCC compiler & GDB debugger. Just make sure they are installed. This depends on your distribution, but virtually all wide-spread distributions today include them by default. |
| 6 |
|
| 7 |
Windows platform |
| 8 |
---------------- |
| 9 |
Code::Blocks does not come with a compiler nor a debugger. It is left up to you to decide which compiler you want to use. |
| 10 |
At this moment, Code::Blocks natively supports the following compilers: |
| 11 |
|
| 12 |
* GNU GCC compiler & GDB debugger |
| 13 |
* Microsoft Visual C++ Free Toolkit 2003 |
| 14 |
* Borland C++ Compiler 5.5 |
| 15 |
|
| 16 |
When you launch Code::Blocks for the first time, it will scan the system for the above compilers (it takes virtually no time). After this scan completes, Code::Blocks will have been configured for the found compiler(s). Code::Blocks will also be configured even for compilers that were not found (default installation settings will be used for each of those compilers). |
| 17 |
|
| 18 |
For more info on how to download and install each of the above compilers, please read on. |
| 19 |
|
| 20 |
|
| 21 |
Downloading the GNU GCC compiler & GDB debugger |
| 22 |
----------------------------------------------- |
| 23 |
Go to "http://www.mingw.org/download.shtml" and download the file named MinGW-x.y.z.exe, where x, y and z are version numbers. At the time of this writing, this file is MinGW-3.1.0-1.exe. |
| 24 |
This setup file contains everything needed to compile and debug windows programs. |
| 25 |
|
| 26 |
|
| 27 |
Downloading the Microsoft Visual C++ Free Toolkit 2003 |
| 28 |
------------------------------------------------------ |
| 29 |
Go to "http://msdn.microsoft.com/visualc/vctoolkit2003" and click on the link labeled "Download the Visual C++ Toolkit 2003". This will download the setup file. |
| 30 |
|
| 31 |
|
| 32 |
Downloading the Borland C++ Compiler 5.5 |
| 33 |
---------------------------------------- |
| 34 |
NOTE: At some point, by following the steps described below, you will be asked to register with Borland and fill out a survey. Registration is free. |
| 35 |
|
| 36 |
Go to "http://www.borland.com/products/downloads/download_cbuilder.html#" and click on the link labeled "Compiler". After you accept the license agreement, you will be provided with download links to the setup file. |
| 37 |
|
| 38 |
|
| 39 |
Compiler-neutral setup steps |
| 40 |
---------------------------- |
| 41 |
Now that you have downloaded the setup file, launch the installation by double-clicking on the setup file. The actual installation process is really simple. Just press "Next" all the way and you 're done. |
| 42 |
|
| 43 |
If you installed the compiler on a directory other than its default, launch Code::Blocks. If it is the first time you launch it, the compiler will be auto-detected. If not, go to "Settings/Configure plugins/Compiler", select the compiler you installed, switch to the "Programs" tab and press "Auto-detect". If you get a message saying that the compiler was auto-detected, congratulations! If not, then press the button with the three dots next to the "Auto-detect" button and select the installation directory of your compiler manually. |
| 44 |
|