<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.next.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tjtoml</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.next.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tjtoml"/>
	<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Special:Contributions/Tjtoml"/>
	<updated>2026-10-18T21:22:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_a_supported_compiler&amp;diff=7236</id>
		<title>Installing a supported compiler</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_a_supported_compiler&amp;diff=7236"/>
		<updated>2012-04-09T06:39:19Z</updated>

		<summary type="html">&lt;p&gt;Tjtoml: /* Downloading the GNU GCC compiler &amp;amp; GDB debugger */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
When you launch Code::Blocks for the first time, it will scan the system for any supported compilers. Once this scan has finished, Code::Blocks will have been correctly configured for any detected compilers. Code::Blocks will also have default configurations even for compilers that were not found.&lt;br /&gt;
&lt;br /&gt;
This article is a guide for obtaining, installing, and configuring the various compilers that Code::Blocks can use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve installed a new compiler, be sure to read the Compiler-neutral setup steps at the end of this article.&lt;br /&gt;
&lt;br /&gt;
At the time of this writing, Code::Blocks supports the following compilers in Windows:&lt;br /&gt;
* [http://www.mingw.org MinGW GCC C/C++ Free Compiler, including G77 (Fortran)]&lt;br /&gt;
** [http://www.cygwin.org Cygwin GCC C/C++ Free Compiler]&lt;br /&gt;
*** [[#HOWTO: Use Cygwin 1.7 with Code::Blocks|HOWTO: Use Cygwin 1.7 with Code::Blocks]]&lt;br /&gt;
* [http://mspgcc.sourceforge.net/ MSP430 GCC C/C++]&lt;br /&gt;
* [http://www.hightec-rt.com/ TriCore GCC C/C++]&lt;br /&gt;
* [http://www.hightec-rt.com/ PowerPC GCC C/C++]&lt;br /&gt;
* [http://msdn.microsoft.com/visualc/vctoolkit2003 Microsoft&#039;s Visual C++ Free Toolkit 2003]&lt;br /&gt;
* [http://www.borland.com/products/downloads/download_cbuilder.html Borland&#039;s C/C++ Free Compiler 5.5]&lt;br /&gt;
* [http://www.digitalmars.com/ Digital Mars Free C/C++ Compiler]&lt;br /&gt;
* [http://store.scitechsoft.com/product_info.php?products_id=37/ OpenWatcom Free C/C++ Compiler]&lt;br /&gt;
* [http://sdcc.sourceforge.net/ Small Device Free C Compiler (SDCC)]&lt;br /&gt;
* [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/index.htm Intel C/C++ Compiler]&lt;br /&gt;
* [http://www.digitalmars.com/d/2.0/dmd-windows.html Digital Mars D Compiler for Windows]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MinGW/GCC ===&lt;br /&gt;
The official MinGW website is at [http://www.mingw.org mingw.org]. A MinGW-bundled version of the latest Code::Blocks release is available from the [https://www.codeblocks.org/downloads/5#windows Code::Blocks download page]. If you install this version, the GCC compiler will be automatically detected and set as the default. Also you can use the TDM&#039;s GCC/mingw32 Builds from [/index.php/topic,10508.0.html] or [http://www.tdragon.net/recentgcc/].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: In any case, if you don&#039;t install MinGW in C:\MinGW, you&#039;ll need to update the configuration of GCC in Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
==== Official MinGW.org ====&lt;br /&gt;
You can install &#039;&#039;&#039;MinGW&#039;&#039;&#039; yourself, by using an automatic downloader/installer or by downloading and unpacking the required packages by hand from [http://www.mingw.org mingw.org], here: [http://sourceforge.net/projects/mingw/files/].&lt;br /&gt;
&lt;br /&gt;
Packages required (suggested) for MinGW/GCC v3.4.5:&lt;br /&gt;
* Compiler:&lt;br /&gt;
** gcc-build-3.4.5-20060117-3.tar.gz&lt;br /&gt;
** gcc-core-3.4.5-20060117-3.tar.gz&lt;br /&gt;
** gcc-g++-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* Components:&lt;br /&gt;
** binutils-2.19.1-mingw32-bin.tar.gz&lt;br /&gt;
** gdb-6.8-mingw-3.tar.bz2&lt;br /&gt;
** mingw32-make-3.81-20080326.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dev.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dll.tar.gz&lt;br /&gt;
** w32api-3.13-mingw32-dev.tar.gz&lt;br /&gt;
&lt;br /&gt;
Packages required (suggested) for MinGW/GCC v4.4.0:&lt;br /&gt;
* Compiler:&lt;br /&gt;
** gcc-full-4.4.0-mingw32-bin-2.tar.lzma&lt;br /&gt;
* Components:&lt;br /&gt;
** binutils-2.19.1-mingw32-bin.tar.gz&lt;br /&gt;
** gdb-6.8-mingw-3.tar.bz2&lt;br /&gt;
** mingw32-make-3.81-20080326.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dev.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dll.tar.gz&lt;br /&gt;
** w32api-3.13-mingw32-dev.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== HOWTO: Use Cygwin 1.7 with Code::Blocks ====&lt;br /&gt;
Cygwin 1.7 changed the way symlinks were created and handled when invoked from a command prompt. I couldn&#039;t find a way to force CB to use a unix-link shell, but was able to find a work around when perusing the Cygwin mailing lists.&lt;br /&gt;
&lt;br /&gt;
The symptom would show up with a message similar to the one below:&lt;br /&gt;
&lt;br /&gt;
  Execution of &#039;g++.exe -Wall -fexceptions  -g     -c c:/dev/code/cb1/main.cpp -o obj/Debug/main.o&#039; in &#039;c:\dev\code\cb1&#039; failed.&lt;br /&gt;
&lt;br /&gt;
Executing the same command from the CMD.EXE prompt yields an &amp;quot;Access is denied&amp;quot; message. This was how I was able to track down why the issue occurred. For more info, see this cygwin mailing list thread: http://www.mail-archive.com/cygwin@cygwin.com/msg104088.html&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The solution is to point your compiler and linker directly to the version of gcc and g++ that you want to use.&lt;br /&gt;
&lt;br /&gt;
In my case, I wanted to use gcc-4.exe and g++-4.exe and so, I went into Settings-&amp;gt;Compiler and Debugger-&amp;gt;Toolchain executables. There I changed the &amp;quot;C Complier&amp;quot;, &amp;quot;C++ Compiler&amp;quot; and &amp;quot;Linker for dynamic libs&amp;quot; to point to gcc-4.exe, g++-4.exe and g++-4.exe.&lt;br /&gt;
&lt;br /&gt;
After this, compilation and linking worked fine.&lt;br /&gt;
&lt;br /&gt;
It would also be a good idea to add an environment variable CYGWIN with a value of nodosfilewarning in Settings-&amp;gt;Environment-&amp;gt;Environment Variables. This eliminates the following (harmless) warning message:&lt;br /&gt;
&lt;br /&gt;
  MS-DOS style path detected: c:/&lt;br /&gt;
    Preferred POSIX equivalent is: /c&lt;br /&gt;
    CYGWIN environment variable option &amp;quot;nodosfilewarning&amp;quot; turns off this warning.&lt;br /&gt;
    Consult the user&#039;s guide for more details about POSIX paths:&lt;br /&gt;
      http://cygwin.com/cygwin-ug-net/using.html#using-pathnames&lt;br /&gt;
&lt;br /&gt;
See also: [[Installing Cygwin Compiler]]&lt;br /&gt;
&lt;br /&gt;
==== (Unofficial) TDM - &amp;quot;Twilight Dragon Media&amp;quot; ====&lt;br /&gt;
These packages are called &#039;&#039;&#039;TDM&#039;s GCC/mingw32 Builds&#039;&#039;&#039; and can be obtained from [/index.php/topic,10508.0.html] or [http://www.tdragon.net/recentgcc/].&lt;br /&gt;
&lt;br /&gt;
Packages required (suggested) for TDM&#039;s GCC/mingw32 Builds v4.4.1-tdm-2 SJLJ:&lt;br /&gt;
...which can be found here: [http://sourceforge.net/projects/tdm-gcc/files/] under: TDM-GCC 4.4 series -&amp;gt; 4.4.1-tdm-2 SJLJ.&lt;br /&gt;
* Compiler:&lt;br /&gt;
** gcc-4.4.1-tdm-2-core.zip&lt;br /&gt;
** gcc-4.4.1-tdm-2-g++.zip&lt;br /&gt;
* Components:&lt;br /&gt;
** binutils-2.19.1-mingw32-bin.tar.gz&lt;br /&gt;
** gdb-6.8-mingw-3.tar.bz2&lt;br /&gt;
** mingw32-make-3.81-20080326-3.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dev.tar.gz&lt;br /&gt;
** mingwrt-3.16-mingw32-dll.tar.gz&lt;br /&gt;
** w32api-3.13-mingw32-dev.tar.gz&lt;br /&gt;
These packages are included in both the [http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download Bundled Installer] and the [http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-webdl.exe/download On-Demand Installer] available via TDMs page referenced above for users who do not wish to download and install them manually.&lt;br /&gt;
&lt;br /&gt;
=== Microsoft Visual C++ ===&lt;br /&gt;
The official Visual C++ website is at [http://msdn.microsoft.com/en-us/visualc/default.aspx http://msdn.microsoft.com/en-us/visualc/default.aspx].&lt;br /&gt;
&lt;br /&gt;
Code::Blocks will work with any edition of Visual C++ since the 2003 edition (MSVC 7.1). The commercial editions of Visual Studio may require additional configuration in Code::Blocks to work correctly. You can also download the most recent &amp;quot;Express&amp;quot; edition of Visual C++ for free from [http://www.microsoft.com/express/vc/ microsoft.com/express/vc]. If you choose an &amp;quot;Express&amp;quot; edition of Visual C++, it is highly recommended that you also install Microsoft&#039;s Platform SDK in order to develop programs for Windows.&lt;br /&gt;
&lt;br /&gt;
=== Borland C++ Compiler 5.5 ===&lt;br /&gt;
NOTE: &#039;&#039;At some point, you will be asked to register with Borland and fill out a survey. Registration is free.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Go to [http://www.borland.com/products/downloads/download_cbuilder.html# Borland&#039;s downloads] and click on the link labeled &amp;quot;Compiler&amp;quot;. After you accept the license agreement, you will be provided with download links to the setup file. (Borland was bought by, and now available at [http://edn.embarcadero.com/article/20633 Embarcadero].)&lt;br /&gt;
&lt;br /&gt;
=== Digital Mars C/C++ Free Compiler ===&lt;br /&gt;
Go to [http://www.digitalmars.com/download/dmcpp.html DigitalMars]. Accept the license agreement and you&#039;ll be redirected to a page containing download links. &lt;br /&gt;
&lt;br /&gt;
In that page, download:&lt;br /&gt;
*The &#039;&#039;&#039;Digital Mars C/C++ Compiler&#039;&#039;&#039; (&amp;lt;tt&amp;gt;dm8**c.zip&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*The &#039;&#039;&#039;Basic Utilities&#039;&#039;&#039; (&amp;lt;tt&amp;gt;bup.zip&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*The &#039;&#039;&#039;STLport&#039;&#039;&#039; library (&amp;lt;tt&amp;gt;stlport.zip&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;tt&amp;gt;dm\bin\sc.ini&amp;lt;/tt&amp;gt; in a text editor, and replace the line&lt;br /&gt;
 INCLUDE=&amp;quot;%@P%\..\include&amp;quot;;&amp;quot;%@P%\..\mfc\include&amp;quot;;%INCLUDE%&lt;br /&gt;
with&lt;br /&gt;
 INCLUDE=&amp;quot;%@P%\..\stlport\stlport&amp;quot;;&amp;quot;%@P%\..\include&amp;quot;;&amp;quot;%@P%\..\mfc\include&amp;quot;;%INCLUDE%&lt;br /&gt;
&lt;br /&gt;
=== Intel C++ Compiler ===&lt;br /&gt;
Please note that on Windows platform, Intel C/C++ compiler requires &#039;&#039;Microsoft Visual C++[http://www.microsoft.com/express/download/offline.aspx]&#039;&#039; to be present in your system in order to function properly. It will not compile any C++ program without it. You should also note that &#039;&#039;Windows SDK[http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&amp;amp;DisplayLang=en]&#039;&#039; shall be installed in order to compile Windows app.&lt;br /&gt;
&lt;br /&gt;
Code::Blocks (C::B) is now able to detect (from svn revision 4967 onwards) Intel C/C++ compiler and it&#039;ll then automatically setup the MSVC compiler so that the Intel compiler works as intended. However if you wish to manually install the Intel C/C++ compiler, then follow the following steps.&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;Settings &amp;gt; Compilers and debuggers&#039;&#039;&#039; and then select &#039;&#039;&#039;Intel C/C++ compiler&#039;&#039;&#039;.&lt;br /&gt;
* Click on the &#039;&#039;&#039;Toolchain executables&#039;&#039;&#039; tab. Point to the installation directory, e.g. &amp;lt;tt&amp;gt;C:\Program Files\Intel\Compiler\C++\10.1.020\IA32&amp;lt;/tt&amp;gt; , inside the &#039;&#039;Compiler&#039;s installation directory&#039;&#039; textbox.&lt;br /&gt;
* Click on the &#039;&#039;&#039;Additional Paths&#039;&#039;&#039; tab and fill in the directories pointing to MSVC bin directory and the Windows SDK directory. It may look like-&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio 8\VC\bin&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio 8\Common7\IDE&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.0\bin&lt;br /&gt;
* Click on the &#039;&#039;&#039;Search directories&#039;&#039;&#039; tab and add the include directories containing headers offered by Intel C/C++ compiler, MSVC compiler and the Windows SDK headers to &#039;&#039;&#039;Compiler&#039;&#039;&#039; and &#039;&#039;&#039;Resource compiler&#039;&#039;&#039;. It may look like-&lt;br /&gt;
 C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\include&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio 8\VC\include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.0\Include&lt;br /&gt;
* Click on the &#039;&#039;&#039;Linker&#039;&#039;&#039; tab under &#039;&#039;&#039;Search directories&#039;&#039;&#039; tab and add the directories containing libraries offered by Intel C/C++ compiler, MSVC compiler and the Windows SDK. It may look like-&lt;br /&gt;
 C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\lib&lt;br /&gt;
 C:\Program Files\Microsoft Visual Studio 8\VC\lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.0\Lib&lt;br /&gt;
&lt;br /&gt;
Click on the &#039;&#039;&#039;OK&#039;&#039;&#039; button to save the settings. Now you should be able to use Intel C/C++ compilers on Windows with C::B.&lt;br /&gt;
&lt;br /&gt;
Note: The directories specified above may be different on your PC.&lt;br /&gt;
&lt;br /&gt;
=== Digital Mars D Compiler for Windows ===&lt;br /&gt;
Now Digital Mars D Compiler (DMD) supports 32bit Windows, and in future it will support 64bit Windows.&lt;br /&gt;
If you want to build D program in CodeBlocks on 32bit Windows, please following the instructions as bellow.&lt;br /&gt;
&lt;br /&gt;
1). Install DMD(2.0) into your Windows system.&lt;br /&gt;
&lt;br /&gt;
You should correctly combine the DMD compiler and install it into your system. Please view the instructions on digitalmars.com website.&lt;br /&gt;
DMD for Windows http://www.digitalmars.com/d/2.0/dmd-windows.html&lt;br /&gt;
&lt;br /&gt;
The newest DMD2 source you can get here: https://github.com/D-Programming-Language&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2). Settings in CodeBlocks.&lt;br /&gt;
&lt;br /&gt;
You should add correct DMD pathes into CodeBlocks &#039;&#039;&#039;Global compiler settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
    2.1). &amp;quot;Settings -&amp;gt; Compiler and debugger settings&amp;quot; and choose compiler to &amp;quot;&#039;&#039;&#039;Digital Mars D Compiler&#039;&#039;&#039;&amp;quot;;&lt;br /&gt;
    2.2). click &amp;quot;Compiler settings -&amp;gt; Other options&amp;quot;, add  &#039;&#039;&#039;-m32&#039;&#039;&#039;  into the field;&lt;br /&gt;
    2.3). click &amp;quot;Linker settings&amp;quot;, and add &amp;quot;&#039;&#039;&#039;D:\Program\DMD2\windows\lib\phobos.lib&#039;&#039;&#039;&amp;quot; into the &amp;quot;Link libraries&amp;quot;;&lt;br /&gt;
    2.4). click &amp;quot;Search directories -&amp;gt; Compiler&amp;quot;, and add &amp;quot;&#039;&#039;&#039;D:\Program\DMD2\src\phobos&#039;&#039;&#039;&amp;quot; into the field;&lt;br /&gt;
    2.5). click &amp;quot;Search directories -&amp;gt; Linker&amp;quot;, and add &amp;quot;&#039;&#039;&#039;D:\Program\DMD2\windows\lib&#039;&#039;&#039;&amp;quot; into the field;&lt;br /&gt;
    2.6). click &amp;quot;Toolchain executables&amp;quot;, add &amp;quot;&#039;&#039;&#039;D:\Program\DMD2\windows&#039;&#039;&#039;&amp;quot; into the &amp;quot;Compiler&#039;s installation directory&amp;quot; filed;&lt;br /&gt;
          (if you installed DMD2 correctly acc. to Installation setp, just click &#039;Auto-detect&#039; button.)&lt;br /&gt;
    2.7). Additional: If you wan to specify the DMC (Digital Mars C/C++ Compiler) you can do like this:&lt;br /&gt;
          click &amp;quot;Toolchain executables -&amp;gt; Additional Paths&amp;quot;, and add &amp;quot;D:\Program\DMC\bin&amp;quot; into the field.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;D:\Program\DMD2&amp;quot; or &amp;quot;D:\Program\DMC\bin&amp;quot; here should change to your own DMD or DMC path in your system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3). Testing D program in CodeBlocks.&lt;br /&gt;
&lt;br /&gt;
In CodeBlocks, produce a &#039;&#039;&#039;D Application&#039;&#039;&#039; project, and input your own D code into the .d file in the project, then &#039;&#039;&#039;build/run&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
At the time of this writing, Code::Blocks supports the following compilers in Linux:&lt;br /&gt;
* [http://gcc.gnu.org/ GNU GCC C/C++ Free Compiler]&lt;br /&gt;
* [http://sdcc.sourceforge.net/ Small Device Free C Compiler (SDCC)]&lt;br /&gt;
* [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/index.htm Intel C/C++ Compiler]&lt;br /&gt;
* [http://www.digitalmars.com/d/2.0/dmd-linux.html Digital Mars D Compiler for Linux]&lt;br /&gt;
&lt;br /&gt;
===Digital Mars D Compiler for Linux===&lt;br /&gt;
Now Digital Mars D Compiler (DMD) supports 32bit and 64bit Linux, and &#039;support Linux library&#039; is under construction. If you want to build D program in CodeBlocks on 32bit and 64bit Linux, please following the instructions as bellow.&lt;br /&gt;
&lt;br /&gt;
1). Install DMD(2.0) into your Linux system.&lt;br /&gt;
&lt;br /&gt;
You should correctly combine the DMD compiler and install it into your system. Please view the instructions on digitalmars.com website.&lt;br /&gt;
DMD for Linux http://www.digitalmars.com/d/2.0/dmd-linux.html&lt;br /&gt;
&lt;br /&gt;
The newest DMD2 source you can get here:&lt;br /&gt;
https://github.com/D-Programming-Language&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2). Settings in CodeBlocks.&lt;br /&gt;
&lt;br /&gt;
A). 32bit Linux &amp;amp; 32bit DMD2.&lt;br /&gt;
&lt;br /&gt;
On 32bit Linux, you should combine 32bit DMD2 from DMD2 source and install it into your system.&lt;br /&gt;
&lt;br /&gt;
You should add correct DMD pathes into CodeBlocks &#039;&#039;&#039;Global compiler settings&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
    A.1). &amp;quot;Settings -&amp;gt; Compiler and debugger settings&amp;quot; and choose compiler to &amp;quot;&#039;&#039;&#039;Digital Mars D Compiler&#039;&#039;&#039;&amp;quot;;&lt;br /&gt;
    A.2). click &amp;quot;Compiler settings -&amp;gt; Other options&amp;quot;, add  &#039;&#039;&#039;-m32&#039;&#039;&#039;  into the field.&lt;br /&gt;
    A.3). click &amp;quot;Linker settings&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib32/libphobos2.a&#039;&#039;&#039;&amp;quot; into the &amp;quot;Link libraries&amp;quot;. &lt;br /&gt;
    A.4). click &amp;quot;Search directories -&amp;gt; Compiler&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/src/phobos&#039;&#039;&#039;&amp;quot; into the field.&lt;br /&gt;
    A.5). click &amp;quot;Search directories -&amp;gt; Linker&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib32&#039;&#039;&#039;&amp;quot; into the field. &lt;br /&gt;
    A.6). click &amp;quot;Toolchain executables&amp;quot;, add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux&#039;&#039;&#039;&amp;quot; into the &amp;quot;Compiler&#039;s installation directory&amp;quot; filed.&lt;br /&gt;
    A.7). change the value of &amp;quot;Program Files -&amp;gt; Linker for dynamic libs&amp;quot; to &amp;quot;&#039;&#039;&#039;gcc -m32 -lrt&#039;&#039;&#039;&amp;quot; or &amp;quot;&#039;&#039;&#039;gcc -lrt&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you installed DMD2 to a different path, please modify &amp;quot;/opt/dmd2&amp;quot; to your own DMD2 path.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
B1). 64bit Linux &amp;amp; &#039;&#039;&#039;64bit DMD2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
On 64bit Linux, you can combine 64bit DMD2 from DMD2 source and install it into your system.&lt;br /&gt;
&lt;br /&gt;
You should add correct DMD paths into CodeBlocks &#039;&#039;&#039;Global compiler settings&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
    B1.1). &amp;quot;Settings -&amp;gt; Compiler and debugger settings&amp;quot; and choose compiler to &amp;quot;&#039;&#039;&#039;Digital Mars D Compiler&#039;&#039;&#039;&amp;quot;;&lt;br /&gt;
    B1.2). click &amp;quot;Compiler settings -&amp;gt; Other options&amp;quot;, add  &#039;&#039;&#039;-m64&#039;&#039;&#039;  into the field.&lt;br /&gt;
    B1.3). click &amp;quot;Linker settings&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib64/libphobos2.a&#039;&#039;&#039;&amp;quot; into the &amp;quot;Link libraries&amp;quot;. &lt;br /&gt;
    B1.4). click &amp;quot;Search directories -&amp;gt; Compiler&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/src/phobos&#039;&#039;&#039;&amp;quot; into the field.&lt;br /&gt;
    B1.5). click &amp;quot;Search directories -&amp;gt; Linker&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib64&#039;&#039;&#039;&amp;quot; into the field. &lt;br /&gt;
    B1.6). click &amp;quot;Toolchain executables&amp;quot;, add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux&#039;&#039;&#039;&amp;quot; into the &amp;quot;Compiler&#039;s installation directory&amp;quot; filed.&lt;br /&gt;
    B1.7). change the value of &amp;quot;Program Files -&amp;gt; Linker for dynamic libs&amp;quot; to &amp;quot;&#039;&#039;&#039;gcc -m64 -lrt&#039;&#039;&#039;&amp;quot; or &amp;quot;&#039;&#039;&#039;gcc -lrt&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you installed DMD2 to a different path, please modify &amp;quot;/opt/dmd2&amp;quot; to your own DMD2 path.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
B2). 64bit Linux with &#039;&#039;&#039;32bit DMD2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
On 64bit Linux, you can combine 32bit DMD2 with 64bit together from DMD2 source and install them into your system.&lt;br /&gt;
&lt;br /&gt;
You should add correct DMD paths into CodeBlocks &#039;&#039;&#039;Global compiler settings&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
    B2.1). &amp;quot;Settings -&amp;gt; Compiler and debugger settings&amp;quot; and choose compiler to &amp;quot;&#039;&#039;&#039;Digital Mars D Compiler&#039;&#039;&#039;&amp;quot;;&lt;br /&gt;
    B2.2). click &amp;quot;Compiler settings -&amp;gt; Other options&amp;quot;, add &#039;&#039;&#039;-m32&#039;&#039;&#039; into the field.&lt;br /&gt;
    B2.3). click &amp;quot;Linker settings&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib32/libphobos2.a&#039;&#039;&#039;&amp;quot; into the &amp;quot;Link libraries&amp;quot;. &lt;br /&gt;
    B2.4). click &amp;quot;Search directories -&amp;gt; Compiler&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/src/phobos&#039;&#039;&#039;&amp;quot; into the field.&lt;br /&gt;
    B2.5). click &amp;quot;Search directories -&amp;gt; Linker&amp;quot;, and add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux/lib32&#039;&#039;&#039;&amp;quot; into the field. &lt;br /&gt;
    B2.6). click &amp;quot;Toolchain executables&amp;quot;, add &amp;quot;&#039;&#039;&#039;/opt/dmd2/linux&#039;&#039;&#039;&amp;quot; into the &amp;quot;Compiler&#039;s installation directory&amp;quot; filed.&lt;br /&gt;
    B2.7). change the value of &amp;quot;Program Files -&amp;gt; Linker for dynamic libs&amp;quot; to &amp;quot;&#039;&#039;&#039;gcc -m32 -lrt&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you installed DMD2 to a different path, please modify &amp;quot;/opt/dmd2&amp;quot; to your own DMD2 path.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3). Testing D program in CodeBlocks.&lt;br /&gt;
&lt;br /&gt;
In CodeBlocks, produce a &#039;&#039;&#039;D Application&#039;&#039;&#039; project, and input your own D code into the .d file in the project, then &#039;&#039;&#039;build/run&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Downloading the GNU GCC compiler &amp;amp; GDB debugger ===&lt;br /&gt;
&lt;br /&gt;
Under Linux you&#039;ll, most probably, already have everything that is needed in order to compile. All major Linux distributions (RedHat, Debian, SuSE, Mandriva, Gentoo, ArchLinux, etc) come with GCC &amp;amp; GDB preinstalled. To make sure you have have gcc installed, go to your terminal and type &#039;gcc -v&#039;. In case you have GCC installed, you will get GCC&#039;s compile options and version number.&lt;br /&gt;
&lt;br /&gt;
==Mac OS X==&lt;br /&gt;
The Mac OS X port efforts has began recently, but it should be a matter of time until these compilers will be supported:&lt;br /&gt;
* [http://gcc.gnu.org/ GNU GCC]&lt;br /&gt;
* [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/index.htm Intel Compiler beta (not yet released to public)]&lt;br /&gt;
* [http://sdcc.sourceforge.net/ Small Device C Compiler (SDCC)]&lt;br /&gt;
&lt;br /&gt;
=== Downloading the GNU GCC compiler &amp;amp; GDB debugger ===&lt;br /&gt;
&lt;br /&gt;
Under Mac you&#039;ll need to install a &#039;&#039;compatible&#039;&#039; version Xcode Tools from http://developer.apple.com/tools/ (or http://developer.apple.com/downloads). You need the &amp;quot;Command Line Tools&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will install Apple versions of:&lt;br /&gt;
&lt;br /&gt;
http://www.gnu.org/software/gcc/&lt;br /&gt;
&lt;br /&gt;
http://www.gnu.org/software/gdb/&lt;br /&gt;
&lt;br /&gt;
http://www.gnu.org/software/make/&lt;br /&gt;
&lt;br /&gt;
=== Setting up compiler switches ===&lt;br /&gt;
&lt;br /&gt;
Usually you need to tweak the compiler options to be able to compile C++ applications - that&#039;s the stuff Xcode hides from your eyes, but you better should know. You need to point to the GNU compiler&#039;s C/C++ include folders, to the GNU linkers libraries folder and a adjust the compiler options to setup the GNU compiler root path. Those path&#039;s differ depending on what hardware (processor architecture) and what version of MacOS is used. For an Intel based Mac with MacOS 10.6.2 and Xcode v3.2.2 the following should work:&lt;br /&gt;
&lt;br /&gt;
Compiler search directories (&amp;quot;include&amp;quot; folders):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
/Developer/SDKs/MacOSX10.6.sdk/usr/include&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Linker search directories (&amp;quot;library&amp;quot; folders):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
/Developer/SDKs/MacOSX10.6.sdk/usr/lib&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional compiler flags:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
-isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -gdwarf-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compiler-neutral setup steps ==&lt;br /&gt;
&lt;br /&gt;
Now that you have downloaded the setup file of the compiler of your choice, launch its installation by double-clicking on the setup file. The actual installation process is really simple. Just press &amp;quot;Next&amp;quot; all the way and you &#039;re done.&lt;br /&gt;
&lt;br /&gt;
If you installed the compiler on its default installation directory, there is nothing more to configure. Launch Code::Blocks and you &#039;re all set :)&lt;br /&gt;
&lt;br /&gt;
If that is not the case, launch Code::Blocks. If it is the first time you launch it, the compiler auto-detection will be launched.&lt;br /&gt;
If your compiler was not auto-detected, go to &amp;quot;Settings-&amp;gt;Compiler and Debugger-&amp;gt;Global Compiler settings-&amp;gt;Toolchain executables&amp;quot;, select the compiler you installed and press &amp;quot;Auto-detect&amp;quot;.&lt;br /&gt;
If you get a message saying that the compiler was auto-detected, congratulations!&lt;br /&gt;
If not, then press the button with the three dots next to the &amp;quot;Auto-detect&amp;quot; button and select the installation directory of your compiler manually.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;The compiler&#039;s installation directory is exactly this: the installation directory. Not the &amp;quot;bin&amp;quot; subdirectory nor any other.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Remote Compilation ==&lt;br /&gt;
Remote compilation is not directly supported by Code::Blocks, however, the following articles explain two remote compilation systems, which use 3rd party programs to provide this functionality:&lt;br /&gt;
&lt;br /&gt;
[[Installing Uniwin remote compiler]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Using Xming for remote compilation]]&lt;br /&gt;
&lt;br /&gt;
== Misc. Custom Compilers ==&lt;br /&gt;
There are several user contributions for different (non-C/C++) compiler which are listed here:&lt;br /&gt;
&lt;br /&gt;
https://wiki.next.codeblocks.org/index.php?title=User_documentation#Compilers&lt;/div&gt;</summary>
		<author><name>Tjtoml</name></author>
	</entry>
</feed>