Вы находитесь на странице: 1из 2

. How to Install CodeBlocks 13.

12
Step 1: Download

Goto http://www.codeblocks.org/downloads. Click "Download the binary release". Select your


operating platform (e.g., Windows 2000/XP/Vista/7). Download the installer with GCC
Compiler, e.g., codeblocks-13.12mingw-setup.exe (98 MB) (which includes MinGW's GNU
GCC compiler and GNU GDB debugger).

Step 2: Install

Run the downloaded installer. Accept the default options.

Verify the Compiler's and Debugger's Path: (For CodeBlocks 13.12 For Windows) Goto
"Settings" menu ⇒ "Compiler..." ⇒ In "Selected Compiler", choose "GNU GCC Compiler" ⇒
Select tab "Toolchain Executables" ⇒ Check the "Compiler's Installation Directory". It shall be
set to the "MinGW" sub-directory of the CodeBlocks installation directory, for example, suppose
that CodeBlocks is installed in "c:\Program Files\codeblocks", set it to "c:\Program
Files\codeblocks\MinGW".

Similarly, check the debugger's path. Goto "Settings" menu ⇒ "Debugger..." ⇒ Expand
"GDB/CDB debugger" ⇒ Select "Default" ⇒ In "Executable path", provide the full-path name
of "gdb.exe", for example, "c:\Program Files\codeblocks\MinGW\bin\gdb.exe".

. How to install MinGW

[To Check] Is MinGW obsoleted by MinGW-W64, which supports both 32-bit and 64-bit
Windows?

MinGW (short for "Minimalist GNU for Windows"), is a minimalist (i.e., small but fewer
features compared with cygwin) development environment for native Microsoft Windows
applications, in particular:

1. A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran
compilers;
2. GNU Binutils for Windows (assembler, linker, archive manager).
3. MSYS (short for "Minimal SYStem"), is a bash Shell command line interpreter.

To install MinGW:

1. Goto MinGW mother site at http://www.mingw.org/ ⇒ Downloads ⇒ Installer ⇒ click


on "mingw-get-inst" link to download the installer.
2. Run the downloaded installer.
1. Set the installation directory. (Try to use a directory name without spaces, e.g.,
"d:\myproject\mingw". Try not to install under "Program Files" or
"Desktop".)
2. In MinGW Installation Manager, select "Installation" ⇒ "Update Catalogue" ⇒
Select all packages in "Basic Setup" ⇒ continue.
3. Setup environment variable PATH to include "<MINGW_HOME>/bin" where
<MINGW_HOME> is the MinGW installed directory that you have chosen in the previous
step.
4. Verify the GCC installation by listing the version of gcc, g++ and gdb:
5. > gcc --version
6. g++ (GCC) 4.8.1
7. ......
8.
9. > g++ --version
10. g++ (GCC) 4.8.1
11. ......
12.
13. > gdb --version
14. GNU gdb (GDB) 7.6.1
......

Вам также может понравиться