<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Seronis</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Seronis"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Seronis"/>
	<updated>2026-05-02T16:40:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler&amp;diff=6292</id>
		<title>Installing a supported compiler</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler&amp;diff=6292"/>
		<updated>2010-03-05T03:44:12Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* (Unofficial) TDM - &amp;quot;Twilight Dragon Media&amp;quot; */&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'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 &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's Visual C++ Free Toolkit 2003]&lt;br /&gt;
* [http://www.borland.com/products/downloads/download_cbuilder.html Borland'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;
&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's GCC/mingw32 Builds from [/index.php/topic,10508.0.html] or [http://www.tdragon.net/recentgcc/].&lt;br /&gt;
&lt;br /&gt;
'''Note''': In any case, if you don't install MinGW in C:\MinGW, you'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 '''MinGW''' 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'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 'g++.exe -Wall -fexceptions  -g     -c c:/dev/code/cb1/main.cpp -o obj/Debug/main.o' in 'c:\dev\code\cb1' 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;
'''[[Solution]]'''&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'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;
==== (Unofficial) TDM - &amp;quot;Twilight Dragon Media&amp;quot; ====&lt;br /&gt;
These packages are called '''TDM's GCC/mingw32 Builds''' 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'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'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: ''At some point, you will be asked to register with Borland and fill out a survey. Registration is free.''&lt;br /&gt;
&lt;br /&gt;
Go to [http://www.borland.com/products/downloads/download_cbuilder.html# Borland'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.&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'll be redirected to a page containing download links. &lt;br /&gt;
&lt;br /&gt;
In that page, download:&lt;br /&gt;
*The '''Digital Mars C/C++ Compiler''' (&amp;lt;tt&amp;gt;dm8**c.zip&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*The '''Basic Utilities''' (&amp;lt;tt&amp;gt;bup.zip&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*The '''STLport''' 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 ''Microsoft Visual C++[http://www.microsoft.com/express/download/offline.aspx]'' 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 ''Windows SDK[http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&amp;amp;DisplayLang=en]'' 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'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 '''Settings &amp;gt; Compilers and debuggers''' and then select '''Intel C/C++ compiler'''.&lt;br /&gt;
* Click on the '''Toolchain executables''' 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 ''Compiler's installation directory'' textbox.&lt;br /&gt;
* Click on the '''Additional Paths''' 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 '''Search directories''' tab and add the include directories containing headers offered by Intel C/C++ compiler, MSVC compiler and the Windows SDK headers to '''Compiler''' and '''Resource compiler'''. 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 '''Linker''' tab under '''Search directories''' 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 '''OK''' 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;
== 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;
&lt;br /&gt;
=== Downloading the GNU GCC compiler &amp;amp; GDB debugger ===&lt;br /&gt;
&lt;br /&gt;
Under Linux you'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 'gcc -v'. In case you have GCC installed, you will get GCC's compile options and version number.&lt;br /&gt;
&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'll need to install Xcode Tools from http://developer.apple.com/tools/&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;
http://www.gnu.org/software/gdb/&lt;br /&gt;
http://www.gnu.org/software/make/&lt;br /&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 '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 '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: ''The compiler's installation directory is exactly this: the installation directory. Not the &amp;quot;bin&amp;quot; subdirectory nor any other.''&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 funcionality:&lt;br /&gt;
&lt;br /&gt;
[[Installing Uniwin remote compiler]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Using Xming for remote compilation]]&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6280</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6280"/>
		<updated>2010-02-12T02:40:20Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Include Boost headers and link with Boost libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.42.0'''. [http://www.boost.org/users/news/version_1_42_0 Click here to browse the Boost 1.42.0 version info and files]. You can check the Boost home page at [http://www.boost.org/ boost.org] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.5 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_42_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_42_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_42&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_42&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgwXX-mt-1_42&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw44-mt-1_42&amp;quot; and &amp;quot;boost_system-mgw44-mt-1_42&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
'''Do I need to link with a library for every Boost component I use?'''&lt;br /&gt;
&lt;br /&gt;
No. Only some of the Boost components require pre-compilation and additional linked-in code. You can even skip building Boost altogether, if you'll only need components without a link-time library. If you want to know whether a specific component requires a pre-built library, just try including the header(s) without making any linker additions. If you get undefined reference errors, you'll need to add the component's library.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6279</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6279"/>
		<updated>2010-02-12T02:39:51Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Set up a Code::Blocks global variable for Boost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.42.0'''. [http://www.boost.org/users/news/version_1_42_0 Click here to browse the Boost 1.42.0 version info and files]. You can check the Boost home page at [http://www.boost.org/ boost.org] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.5 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_42_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_42_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_42&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_42&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgwXX-mt-1_40&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw44-mt-1_40&amp;quot; and &amp;quot;boost_system-mgw44-mt-1_40&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
'''Do I need to link with a library for every Boost component I use?'''&lt;br /&gt;
&lt;br /&gt;
No. Only some of the Boost components require pre-compilation and additional linked-in code. You can even skip building Boost altogether, if you'll only need components without a link-time library. If you want to know whether a specific component requires a pre-built library, just try including the header(s) without making any linker additions. If you get undefined reference errors, you'll need to add the component's library.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6278</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6278"/>
		<updated>2010-02-12T02:39:25Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Build Boost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.42.0'''. [http://www.boost.org/users/news/version_1_42_0 Click here to browse the Boost 1.42.0 version info and files]. You can check the Boost home page at [http://www.boost.org/ boost.org] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.5 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_42_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_42_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_40&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_40&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgwXX-mt-1_40&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw44-mt-1_40&amp;quot; and &amp;quot;boost_system-mgw44-mt-1_40&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
'''Do I need to link with a library for every Boost component I use?'''&lt;br /&gt;
&lt;br /&gt;
No. Only some of the Boost components require pre-compilation and additional linked-in code. You can even skip building Boost altogether, if you'll only need components without a link-time library. If you want to know whether a specific component requires a pre-built library, just try including the header(s) without making any linker additions. If you get undefined reference errors, you'll need to add the component's library.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6277</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=6277"/>
		<updated>2010-02-12T02:38:36Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Boost Source Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.42.0'''. [http://www.boost.org/users/news/version_1_42_0 Click here to browse the Boost 1.42.0 version info and files]. You can check the Boost home page at [http://www.boost.org/ boost.org] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.5 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_42_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_40_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_40&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_40&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgwXX-mt-1_40&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw44-mt-1_40&amp;quot; and &amp;quot;boost_system-mgw44-mt-1_40&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
'''Do I need to link with a library for every Boost component I use?'''&lt;br /&gt;
&lt;br /&gt;
No. Only some of the Boost components require pre-compilation and additional linked-in code. You can even skip building Boost altogether, if you'll only need components without a link-time library. If you want to know whether a specific component requires a pre-built library, just try including the header(s) without making any linker additions. If you get undefined reference errors, you'll need to add the component's library.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows&amp;diff=6276</id>
		<title>Installing Code::Blocks nightly build on Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows&amp;diff=6276"/>
		<updated>2010-02-10T03:51:44Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Installing Code::Blocks]]&lt;br /&gt;
[[Category:Installing Code::Blocks nightly build]]&lt;br /&gt;
This article describes how to install a nightly build of ''Code::Blocks''.&lt;br /&gt;
&lt;br /&gt;
:''NOTE'': If you have installed ''Code::Blocks'' RC1, RC1-1, or RC2; please either uninstall it or make sure you use a different directory. '''Do not''' install the nightly build on top of these release candidates. &lt;br /&gt;
&lt;br /&gt;
=== Install steps ===&lt;br /&gt;
&lt;br /&gt;
# [[MinGW_installation|Install ''MinGW'' and the ''GDB debugger'']].&lt;br /&gt;
# Download and install [http://www.7-zip.org/ 7-Zip]. You need it to extract the nightly build.&lt;br /&gt;
# Download the latest nightly build from the [/index.php?board=20.0 Nightly Builds forum].&lt;br /&gt;
# Download the according ''wxWidgets Unicode DLL'' for your nightly build (download link in forum).&lt;br /&gt;
# Download the ''mingw10.dll'' for ''Code::Blocks'' [http://download.berlios.de/codeblocks/mingwm10.7z mingwm10.7z] (also mentioned at the nightly build).&lt;br /&gt;
#* This step is optional if the bin directory of ''MinGW'' is in your PATH variable '''or''' if you copy ''mingw10.dll'' from &amp;lt;tt&amp;gt;…\&amp;quot;MinGW&amp;quot;\bin&amp;lt;/tt&amp;gt; directory to your unzip-directory of ''Code::Blocks'' an ''wxWidgets DLL''.&lt;br /&gt;
# Unzip ''Code::Blocks'' and the ''wxWidgets DLL'' to the same directory.&lt;br /&gt;
# Start ''Code::Blocks'' and configure ''GNU GCC compiler''.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Downloads for one Nightly Install from 2010.01.16 see [/index.php/topic,11875.0.html Nightly Builds forum (build 6088)]:&lt;br /&gt;
 [http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download TDM MinGW v4.4.1-2]&lt;br /&gt;
 Note: The GDB debugger is also handled with the previously linked installer and doesnt require a seperate download.&lt;br /&gt;
 [http://prdownload.berlios.de/codeblocks/CB_20100116_rev6088_win32.7z CB_20100116_rev6088_win32.7z]&lt;br /&gt;
 [http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2810.7z wxmsw28u_gcc_cb_wx2810.7z]&lt;br /&gt;
&lt;br /&gt;
Downloads for one Nightly Install from 2007.08.16 see [/index.php/topic,6705.0.html Nightly Builds forum (build 4399)]:&lt;br /&gt;
 [http://prdownloads.sf.net/mingw/MinGW-5.1.3.exe MinGW-5.1.3.exe]&lt;br /&gt;
 [http://prdownloads.sf.net/mingw/gdb-6.6.tar.bz2 gdb-6.6.tar.bz2]&lt;br /&gt;
 Note: If you don't install to C:\MinGW you have to change the 5 path entries inside&lt;br /&gt;
 ''Code::Blocks'' under settings-&amp;gt;compiler and debugger.&lt;br /&gt;
 [http://prdownload.berlios.de/codeblocks/mingwm10.7z mingwm10.7z]&lt;br /&gt;
 [http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx284.7z wxmsw28u_gcc_cb_wx284.7z]&lt;br /&gt;
 [http://prdownload.berlios.de/codeblocks/CB_20070816_rev4399_win32.7z CB_20070816_rev4399_win32.7z]&lt;br /&gt;
&lt;br /&gt;
Downloads for one Nightly Install from 2006.08.26 (build 2910):&lt;br /&gt;
 [http://prdownloads.sf.net/mingw/MinGW-5.1.3.exe MinGW-5.1.3.exe]&lt;br /&gt;
 [http://prdownloads.sf.net/mingw/gdb-6.3-2.exe gdb-6.3-2.exe] &lt;br /&gt;
 Note: If you don't install to C:\MinGW you have to change the 5 path entries inside&lt;br /&gt;
 Code::Blocks under settings-&amp;gt;compiler and debugger.&lt;br /&gt;
 [http://download.berlios.de/codeblocks/mingwm10.7z mingwm10.7z]&lt;br /&gt;
 [http://download.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z wxmsw26u_gcc_cb_wx2.6.3p2.7z]&lt;br /&gt;
 [http://download.berlios.de/codeblocks/CB_20060826_rev2910_win32.7z CB_20060826_rev2910_win32.7z]&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=6275</id>
		<title>Installing Code::Blocks from source on Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=6275"/>
		<updated>2010-02-09T14:09:08Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* wxWidgets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Installing Code::Blocks]]&lt;br /&gt;
[[Category:Installing Code::Blocks from source]]&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
=== Note for RC2 users ===&lt;br /&gt;
&lt;br /&gt;
The older Code::Blocks RC2 does not support global compiler variables which were added after RC2 was released and is unable to read project files generated with post-RC2 versions.&lt;br /&gt;
To build Code::Blocks, you need a post-RC2 build, such as ''8.02'' or any of the ''nightly builds'' obtainable by [/index.php?board=20.0 searching the forum].&lt;br /&gt;
&lt;br /&gt;
=== MinGW compiler ===&lt;br /&gt;
&lt;br /&gt;
At the present time, Code::Blocks only compiles successfully with the MinGW compiler (or any other gcc for that matter). You will need a complete, working [[MinGW installation]] or [http://www.tdragon.net/recentgcc/ TDM-MinGW package GCC 4.4.1]&lt;br /&gt;
&lt;br /&gt;
=== wxWidgets ===&lt;br /&gt;
&lt;br /&gt;
[http://www.wxwidgets.org/ wxWidgets.org]&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses&lt;br /&gt;
* since 28 March 2009 wxWidgets 2.8.10 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.10.zip wxMSW-2.8.10.zip]&lt;br /&gt;
&lt;br /&gt;
* since 18 October 2008 wxWidgets 2.8.9 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.9.zip wxMSW-2.8.9.zip]&lt;br /&gt;
&lt;br /&gt;
* since 19 July 2008 wxWidgets 2.8.8 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.8.zip wxMSW-2.8.8.zip]&lt;br /&gt;
&lt;br /&gt;
* since 28 November 2007 wxWidgets 2.8.7 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.7.zip wxMSW-2.8.7.zip]&lt;br /&gt;
&lt;br /&gt;
* since November 2007 wxWidgets 2.8.6 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.6.zip wxMSW-2.8.6.zip]&lt;br /&gt;
&lt;br /&gt;
* since May 2007 wxWidgets 2.8.4&amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.4.zip wxMSW-2.8.4.zip]&lt;br /&gt;
&lt;br /&gt;
For latest infos check forum: [/index.php?topic=3299.0 Important changes to the nightly builds]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You do ''not'' need MSYS (''in fact, if you have MSYS, make sure it is not in your PATH when building wxWidgets'').&lt;br /&gt;
&lt;br /&gt;
=== SVN client ===&lt;br /&gt;
&lt;br /&gt;
In order to check out the Code::Blocks sources you will need a SVN client.&lt;br /&gt;
For convenience, it is recommended that you install [http://tortoisesvn.net/downloads TortoiseSVN] on your machine, as this is a lot more comfortable. However, if you get a bad feeling when some program is messing with your Explorer menu, then you can use the [http://subversion.tigris.org/project_packages.html svn command-line client] equally well.&lt;br /&gt;
&lt;br /&gt;
It is generally a good idea to install the command-line client (and adding it to PATH) even if you use TortoiseSVN for convenience. The &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; tool which is used during the build of Code::Blocks makes use of the &amp;lt;tt&amp;gt;svn&amp;lt;/tt&amp;gt; binary if it is available. This is preferable to the manual parsing of the entries file that is used as fall-back.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do note that working copies checked out with the 1.4 version of Subversion are no longer compatible with earlier versions (Subversion will transparently update existing repositories).&lt;br /&gt;
&lt;br /&gt;
The built-in fall-back mechanism in &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; has been updated to the new 1.4 format and will no longer work with the old format.&amp;lt;br&amp;gt;&lt;br /&gt;
Therefore, if you use a Subversion client from the 1.0-1.3 line, you ''must'' put the command line tool into &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; for a successful build.&amp;lt;br&amp;gt;&lt;br /&gt;
If you use Subversion 1.4, then it is good practice nevertheless, but you can do without, too.&lt;br /&gt;
&lt;br /&gt;
=== svn.exe ===&lt;br /&gt;
If you want to show the SVN number in your code::blocks dialog box.&lt;br /&gt;
&lt;br /&gt;
[[Image:Svn number.png|300*300px]]&lt;br /&gt;
&lt;br /&gt;
You should also let svn.exe exist in the PATH of your windows system.&lt;br /&gt;
A command line SVN package can be download here [http://www.open.collab.net/downloads/subversion/ CollabNet Subversion Command-Line Client v1.6 (for Windows)].&lt;br /&gt;
&lt;br /&gt;
=== zip.exe ===&lt;br /&gt;
&lt;br /&gt;
You'll also need a working 'zip' program.&lt;br /&gt;
If you have the version listed on our [https://wiki.codeblocks.org/index.php?title=Mingw#Other_developer_tools tools page], you'll be fine.&lt;br /&gt;
&lt;br /&gt;
The zip program coming with cygwin will ''not'' work properly. You do ''not'' need WinZip.&lt;br /&gt;
&lt;br /&gt;
Make sure the zip binary is in your PATH so the &amp;lt;tt&amp;gt;update.bat&amp;lt;/tt&amp;gt; script will be able to find it (alternatively, you can edit the batch file, setting the ZIPCMD variable to something else).&lt;br /&gt;
&lt;br /&gt;
The easiest way is to put zip.exe into &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; inside your MinGW installation directory (that folder is normally in the path).&lt;br /&gt;
&lt;br /&gt;
=== Code::Blocks sources ===&lt;br /&gt;
&lt;br /&gt;
You will also (obviously) need the Code::Blocks sources. &lt;br /&gt;
&lt;br /&gt;
Using ''TortoiseSVN'', make a folder where you want to store the sources, right-click on the folder, and select &amp;quot;SVN Checkout...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win svn checkout.png]]&lt;br /&gt;
&lt;br /&gt;
In the top box, enter svn://svn.berlios.de/codeblocks/trunk and hit the OK button.&lt;br /&gt;
&lt;br /&gt;
Using ''svn'', you have to open a command prompt (&amp;quot;DOS Window&amp;quot;). Make a folder, change directory, and run svn:&lt;br /&gt;
&lt;br /&gt;
  mkdir codeblocks-head&lt;br /&gt;
  cd codeblocks-head&lt;br /&gt;
  svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
== Unicode Build ==&lt;br /&gt;
&lt;br /&gt;
=== Compile wxWidgets in Unicode mode ===&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
''remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well.''&lt;br /&gt;
''Use the same commands as for the release build, but replace &amp;quot;release&amp;quot; by &amp;quot;debug&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
=== Compile Code::Blocks ===&lt;br /&gt;
Now, before this step, you have prepared all the stuff to build code::blocks. It's very interesting that we use code::blocks to build code::blocks binaries.&lt;br /&gt;
&lt;br /&gt;
==== Open project====&lt;br /&gt;
Open the project file '''CodeBlocks.cbp'''. You will be prompted to define the global variable $(#wx). Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
[[Image:Global_variable.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Global_variable2.png]]&lt;br /&gt;
&lt;br /&gt;
====Compile project====&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build button.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build target.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build finish.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copy wxWidgets support DLL====&lt;br /&gt;
After the compilation has finished, copy &amp;lt;tt&amp;gt;lib\gcc_dll\wxmsw28u_gcc_custom.dll&amp;lt;/tt&amp;gt; from the wxWidgets directory to the &amp;lt;tt&amp;gt;src\devel&amp;lt;/tt&amp;gt; directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into dll hell).&lt;br /&gt;
&lt;br /&gt;
[[Image:Win output folder.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win copy dll.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Runing script file====&lt;br /&gt;
Run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt; (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win run bat.png]]&lt;br /&gt;
&lt;br /&gt;
The stripped (&amp;quot;production&amp;quot;) executable is found in &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; together with all libraries and data files. If you want a version with debug symbols instead (caution: huge size!), use the one found in the &amp;lt;tt&amp;gt;devel&amp;lt;/tt&amp;gt; folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Congratulations, you own a freshly built version of Code::Blocks!&lt;br /&gt;
&lt;br /&gt;
[[Image:Win final folder.png]]&lt;br /&gt;
&lt;br /&gt;
====Note for future updates====&lt;br /&gt;
Go to the Code::Blocks root directory and run &amp;lt;tt&amp;gt;svn update&amp;lt;/tt&amp;gt; (or use TurtoiseSVN to the same effect).&amp;lt;br/&amp;gt;&lt;br /&gt;
Then open and build the project as described before (and any contrib plugins that you wish to use), and re-run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Install Code::Blocks ===&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
=== Compile contributed (or your own) plugins ===&lt;br /&gt;
&lt;br /&gt;
The workspace file '''ContribPlugins.workspace''' contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all).&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Contribute plugin.png]]&lt;br /&gt;
&lt;br /&gt;
When you open the contrib plugins workspace, you will be asked to define the &amp;lt;tt&amp;gt;$(#cb)&amp;lt;/tt&amp;gt; global compiler variable. This is the path that contains the sdk folder normally this is codeblocks\src. The build process uses this information to place the plugins and data files into the correct place. Enter the location of the Code::Blocks sources in the same way as for the &amp;lt;tt&amp;gt;$(#wx)&amp;lt;/tt&amp;gt; variable earlier.&lt;br /&gt;
&lt;br /&gt;
Don't forget to run update.bat again after building the contrib plugins.&lt;br /&gt;
&lt;br /&gt;
== ANSI Build ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f7d9d9; border: 1px solid #000&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== DEPRECATION WARNING: ====&lt;br /&gt;
As of February 2006, the official default build for Code::Blocks is '''Unicode''' (see above). Although ANSI builds are technically possible, we discourage their use unless there is a good reason.&amp;lt;br/&amp;gt;&lt;br /&gt;
''Support for ANSI builds is likely to be dropped after Version 1.0 is out.''&lt;br /&gt;
&lt;br /&gt;
There is hardly any good argument against using a Unicode build if your OS supports Unicode, even if you do not understand any other language than English, as a Unicode version guarantees that it will be able to work with whatever languages you may possibly encounter in the future -- at a very reasonable cost.&lt;br /&gt;
&lt;br /&gt;
However, if you absolutely don't care about Unicode or if you are bound to use Windows 95, then you may want to build an ANSI version nevertheless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Compile wxWidgets in ANSI mode ====&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets&lt;br /&gt;
&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0&lt;br /&gt;
&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
==== Compile Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Open the project CodeBlocks.cbp. You will be prompted to define the global variable $(#wx) if you have not used it before. Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
'''Important:'''  The project file is set to compile an Unicode version of Code::Blocks by default. To make an ANSI build, you have to make the following two changes to build options before compiling:&lt;br /&gt;
1. In the &amp;quot;Compiler&amp;quot; tab, under &amp;quot;#defines&amp;quot;, remove the entry wxUSE_UNICODE.&lt;br /&gt;
2. Under &amp;quot;Custom variables&amp;quot;, set the variable WX_SUFFIX to empty (default value: u).&lt;br /&gt;
&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
After the compilation has finished, copy wxmsw28u_gcc_custom.dll from lib\gcc_dll inside the wxWidgets directory to the devel directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into [http://en.wikipedia.org/wiki/DLL_hell dll hell] ).&lt;br /&gt;
Run update.bat (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
The location of executable is src\output in C::B tree. From here you'll not need the nightly build anymore.&lt;br /&gt;
&lt;br /&gt;
One little note for svn updates and rebuilds : just go into the codeblocks root directory and do '''svn update''' (or use Turtoise svn).&lt;br /&gt;
&lt;br /&gt;
Then run the src/output/codeblocks.exe, reload project, build it, reload plugins workspace, build it, quit codeblocks and re-run update.bat. You'll have an up-to-date C::B in 3 minutes !&lt;br /&gt;
&lt;br /&gt;
==== Install Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
==== Compile contributed (or your own) plugins ====&lt;br /&gt;
&lt;br /&gt;
The workspace file ContribPlugins.workspace contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all). Don't forget to run update.bat again after building the contrib plugins.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=6274</id>
		<title>Installing Code::Blocks from source on Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=6274"/>
		<updated>2010-02-09T14:04:57Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* MinGW compiler */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Installing Code::Blocks]]&lt;br /&gt;
[[Category:Installing Code::Blocks from source]]&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
=== Note for RC2 users ===&lt;br /&gt;
&lt;br /&gt;
The older Code::Blocks RC2 does not support global compiler variables which were added after RC2 was released and is unable to read project files generated with post-RC2 versions.&lt;br /&gt;
To build Code::Blocks, you need a post-RC2 build, such as ''8.02'' or any of the ''nightly builds'' obtainable by [/index.php?board=20.0 searching the forum].&lt;br /&gt;
&lt;br /&gt;
=== MinGW compiler ===&lt;br /&gt;
&lt;br /&gt;
At the present time, Code::Blocks only compiles successfully with the MinGW compiler (or any other gcc for that matter). You will need a complete, working [[MinGW installation]] or [http://www.tdragon.net/recentgcc/ TDM-MinGW package GCC 4.4.1]&lt;br /&gt;
&lt;br /&gt;
=== wxWidgets ===&lt;br /&gt;
&lt;br /&gt;
[http://www.wxwidgets.org/ wxWidgets.org]&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses&lt;br /&gt;
* since 19 July 2008 wxWidgets 2.8.8 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.8.zip wxMSW-2.8.8.zip]&lt;br /&gt;
&lt;br /&gt;
* since 28 November 2007 wxWidgets 2.8.7 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.7.zip wxMSW-2.8.7.zip]&lt;br /&gt;
&lt;br /&gt;
* since November 2007 wxWidgets 2.8.6 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.6.zip wxMSW-2.8.6.zip]&lt;br /&gt;
&lt;br /&gt;
* since May 2007 wxWidgets 2.8.4&amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.4.zip wxMSW-2.8.4.zip]&lt;br /&gt;
&lt;br /&gt;
For latest infos check forum: [/index.php?topic=3299.0 Important changes to the nightly builds]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You do ''not'' need MSYS (''in fact, if you have MSYS, make sure it is not in your PATH when building wxWidgets'').&lt;br /&gt;
&lt;br /&gt;
=== SVN client ===&lt;br /&gt;
&lt;br /&gt;
In order to check out the Code::Blocks sources you will need a SVN client.&lt;br /&gt;
For convenience, it is recommended that you install [http://tortoisesvn.net/downloads TortoiseSVN] on your machine, as this is a lot more comfortable. However, if you get a bad feeling when some program is messing with your Explorer menu, then you can use the [http://subversion.tigris.org/project_packages.html svn command-line client] equally well.&lt;br /&gt;
&lt;br /&gt;
It is generally a good idea to install the command-line client (and adding it to PATH) even if you use TortoiseSVN for convenience. The &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; tool which is used during the build of Code::Blocks makes use of the &amp;lt;tt&amp;gt;svn&amp;lt;/tt&amp;gt; binary if it is available. This is preferable to the manual parsing of the entries file that is used as fall-back.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do note that working copies checked out with the 1.4 version of Subversion are no longer compatible with earlier versions (Subversion will transparently update existing repositories).&lt;br /&gt;
&lt;br /&gt;
The built-in fall-back mechanism in &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; has been updated to the new 1.4 format and will no longer work with the old format.&amp;lt;br&amp;gt;&lt;br /&gt;
Therefore, if you use a Subversion client from the 1.0-1.3 line, you ''must'' put the command line tool into &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; for a successful build.&amp;lt;br&amp;gt;&lt;br /&gt;
If you use Subversion 1.4, then it is good practice nevertheless, but you can do without, too.&lt;br /&gt;
&lt;br /&gt;
=== svn.exe ===&lt;br /&gt;
If you want to show the SVN number in your code::blocks dialog box.&lt;br /&gt;
&lt;br /&gt;
[[Image:Svn number.png|300*300px]]&lt;br /&gt;
&lt;br /&gt;
You should also let svn.exe exist in the PATH of your windows system.&lt;br /&gt;
A command line SVN package can be download here [http://www.open.collab.net/downloads/subversion/ CollabNet Subversion Command-Line Client v1.6 (for Windows)].&lt;br /&gt;
&lt;br /&gt;
=== zip.exe ===&lt;br /&gt;
&lt;br /&gt;
You'll also need a working 'zip' program.&lt;br /&gt;
If you have the version listed on our [https://wiki.codeblocks.org/index.php?title=Mingw#Other_developer_tools tools page], you'll be fine.&lt;br /&gt;
&lt;br /&gt;
The zip program coming with cygwin will ''not'' work properly. You do ''not'' need WinZip.&lt;br /&gt;
&lt;br /&gt;
Make sure the zip binary is in your PATH so the &amp;lt;tt&amp;gt;update.bat&amp;lt;/tt&amp;gt; script will be able to find it (alternatively, you can edit the batch file, setting the ZIPCMD variable to something else).&lt;br /&gt;
&lt;br /&gt;
The easiest way is to put zip.exe into &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; inside your MinGW installation directory (that folder is normally in the path).&lt;br /&gt;
&lt;br /&gt;
=== Code::Blocks sources ===&lt;br /&gt;
&lt;br /&gt;
You will also (obviously) need the Code::Blocks sources. &lt;br /&gt;
&lt;br /&gt;
Using ''TortoiseSVN'', make a folder where you want to store the sources, right-click on the folder, and select &amp;quot;SVN Checkout...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win svn checkout.png]]&lt;br /&gt;
&lt;br /&gt;
In the top box, enter svn://svn.berlios.de/codeblocks/trunk and hit the OK button.&lt;br /&gt;
&lt;br /&gt;
Using ''svn'', you have to open a command prompt (&amp;quot;DOS Window&amp;quot;). Make a folder, change directory, and run svn:&lt;br /&gt;
&lt;br /&gt;
  mkdir codeblocks-head&lt;br /&gt;
  cd codeblocks-head&lt;br /&gt;
  svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
== Unicode Build ==&lt;br /&gt;
&lt;br /&gt;
=== Compile wxWidgets in Unicode mode ===&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
''remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well.''&lt;br /&gt;
''Use the same commands as for the release build, but replace &amp;quot;release&amp;quot; by &amp;quot;debug&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
=== Compile Code::Blocks ===&lt;br /&gt;
Now, before this step, you have prepared all the stuff to build code::blocks. It's very interesting that we use code::blocks to build code::blocks binaries.&lt;br /&gt;
&lt;br /&gt;
==== Open project====&lt;br /&gt;
Open the project file '''CodeBlocks.cbp'''. You will be prompted to define the global variable $(#wx). Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
[[Image:Global_variable.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Global_variable2.png]]&lt;br /&gt;
&lt;br /&gt;
====Compile project====&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build button.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build target.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win build finish.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Copy wxWidgets support DLL====&lt;br /&gt;
After the compilation has finished, copy &amp;lt;tt&amp;gt;lib\gcc_dll\wxmsw28u_gcc_custom.dll&amp;lt;/tt&amp;gt; from the wxWidgets directory to the &amp;lt;tt&amp;gt;src\devel&amp;lt;/tt&amp;gt; directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into dll hell).&lt;br /&gt;
&lt;br /&gt;
[[Image:Win output folder.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:Win copy dll.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Runing script file====&lt;br /&gt;
Run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt; (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win run bat.png]]&lt;br /&gt;
&lt;br /&gt;
The stripped (&amp;quot;production&amp;quot;) executable is found in &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; together with all libraries and data files. If you want a version with debug symbols instead (caution: huge size!), use the one found in the &amp;lt;tt&amp;gt;devel&amp;lt;/tt&amp;gt; folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Congratulations, you own a freshly built version of Code::Blocks!&lt;br /&gt;
&lt;br /&gt;
[[Image:Win final folder.png]]&lt;br /&gt;
&lt;br /&gt;
====Note for future updates====&lt;br /&gt;
Go to the Code::Blocks root directory and run &amp;lt;tt&amp;gt;svn update&amp;lt;/tt&amp;gt; (or use TurtoiseSVN to the same effect).&amp;lt;br/&amp;gt;&lt;br /&gt;
Then open and build the project as described before (and any contrib plugins that you wish to use), and re-run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Install Code::Blocks ===&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
=== Compile contributed (or your own) plugins ===&lt;br /&gt;
&lt;br /&gt;
The workspace file '''ContribPlugins.workspace''' contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all).&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Contribute plugin.png]]&lt;br /&gt;
&lt;br /&gt;
When you open the contrib plugins workspace, you will be asked to define the &amp;lt;tt&amp;gt;$(#cb)&amp;lt;/tt&amp;gt; global compiler variable. This is the path that contains the sdk folder normally this is codeblocks\src. The build process uses this information to place the plugins and data files into the correct place. Enter the location of the Code::Blocks sources in the same way as for the &amp;lt;tt&amp;gt;$(#wx)&amp;lt;/tt&amp;gt; variable earlier.&lt;br /&gt;
&lt;br /&gt;
Don't forget to run update.bat again after building the contrib plugins.&lt;br /&gt;
&lt;br /&gt;
== ANSI Build ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f7d9d9; border: 1px solid #000&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== DEPRECATION WARNING: ====&lt;br /&gt;
As of February 2006, the official default build for Code::Blocks is '''Unicode''' (see above). Although ANSI builds are technically possible, we discourage their use unless there is a good reason.&amp;lt;br/&amp;gt;&lt;br /&gt;
''Support for ANSI builds is likely to be dropped after Version 1.0 is out.''&lt;br /&gt;
&lt;br /&gt;
There is hardly any good argument against using a Unicode build if your OS supports Unicode, even if you do not understand any other language than English, as a Unicode version guarantees that it will be able to work with whatever languages you may possibly encounter in the future -- at a very reasonable cost.&lt;br /&gt;
&lt;br /&gt;
However, if you absolutely don't care about Unicode or if you are bound to use Windows 95, then you may want to build an ANSI version nevertheless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Compile wxWidgets in ANSI mode ====&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets&lt;br /&gt;
&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0&lt;br /&gt;
&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
==== Compile Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Open the project CodeBlocks.cbp. You will be prompted to define the global variable $(#wx) if you have not used it before. Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
'''Important:'''  The project file is set to compile an Unicode version of Code::Blocks by default. To make an ANSI build, you have to make the following two changes to build options before compiling:&lt;br /&gt;
1. In the &amp;quot;Compiler&amp;quot; tab, under &amp;quot;#defines&amp;quot;, remove the entry wxUSE_UNICODE.&lt;br /&gt;
2. Under &amp;quot;Custom variables&amp;quot;, set the variable WX_SUFFIX to empty (default value: u).&lt;br /&gt;
&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
After the compilation has finished, copy wxmsw28u_gcc_custom.dll from lib\gcc_dll inside the wxWidgets directory to the devel directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into [http://en.wikipedia.org/wiki/DLL_hell dll hell] ).&lt;br /&gt;
Run update.bat (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
The location of executable is src\output in C::B tree. From here you'll not need the nightly build anymore.&lt;br /&gt;
&lt;br /&gt;
One little note for svn updates and rebuilds : just go into the codeblocks root directory and do '''svn update''' (or use Turtoise svn).&lt;br /&gt;
&lt;br /&gt;
Then run the src/output/codeblocks.exe, reload project, build it, reload plugins workspace, build it, quit codeblocks and re-run update.bat. You'll have an up-to-date C::B in 3 minutes !&lt;br /&gt;
&lt;br /&gt;
==== Install Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
==== Compile contributed (or your own) plugins ====&lt;br /&gt;
&lt;br /&gt;
The workspace file ContribPlugins.workspace contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all). Don't forget to run update.bat again after building the contrib plugins.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Using_Allegro_with_Code::Blocks&amp;diff=6127</id>
		<title>Using Allegro with Code::Blocks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Using_Allegro_with_Code::Blocks&amp;diff=6127"/>
		<updated>2009-09-17T22:19:59Z</updated>

		<summary type="html">&lt;p&gt;Seronis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
&lt;br /&gt;
==What is Allegro==&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;quot;Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Unix (Linux, FreeBSD, Irix, Solaris, Darwin), Windows, QNX, BeOS and MacOS X. It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI. Read more details on the introductory page.&amp;quot;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Links:'''&lt;br /&gt;
* '''[http://alleg.sourceforge.net/readme.html Official Site]''' - Readme / Introduction&lt;br /&gt;
* '''[http://alleg.sourceforge.net/wip.html Download]''' - Stable and Developement branches&lt;br /&gt;
* '''[http://wiki.allegro.cc/index.php?title=Getting_Started Getting Started]''' - Unofficial wiki with information on how to set up many popular IDEs for use with Allegro&lt;br /&gt;
&lt;br /&gt;
==Important Note==&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The links provided here are for convenience only.  For any problems compiling, installing and using allegro, the right place to ask is [http://www.allegro.cc/ THEIR FORUMS].&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=User_documentation&amp;diff=6047</id>
		<title>User documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=User_documentation&amp;diff=6047"/>
		<updated>2009-09-06T17:32:04Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Third-party libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Code::Blocks Documentation]]&lt;br /&gt;
[[Category:User Documentation]]&lt;br /&gt;
== Official user document ==&lt;br /&gt;
The Official Code::Blocks user document can be found [https://www.codeblocks.org/user-manual here]&lt;br /&gt;
&lt;br /&gt;
== Articles for Code::Blocks users ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[Installing Code::Blocks]]'''&lt;br /&gt;
&lt;br /&gt;
:How to install Code::Blocks (from binary or source)&lt;br /&gt;
&lt;br /&gt;
'''[[Keyboard Shortcuts]]'''&lt;br /&gt;
&lt;br /&gt;
:List of keyboard shortcuts that can be used in Code::Blocks&lt;br /&gt;
&lt;br /&gt;
'''[[Command line arguments]]'''&lt;br /&gt;
&lt;br /&gt;
:List of command-line arguments that can be used with Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
'''[[Personalities]]'''&lt;br /&gt;
&lt;br /&gt;
:Customize the Code::Blocks user interface for different workflows.&lt;br /&gt;
&lt;br /&gt;
'''[[Code::Blocks Plugins]]'''&lt;br /&gt;
&lt;br /&gt;
:List of plugins that come with Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
'''[[The build process of Code::Blocks]]'''&lt;br /&gt;
&lt;br /&gt;
:Information about how Code::Blocks actually builds your source code.&lt;br /&gt;
&lt;br /&gt;
'''[[Scripting Code::Blocks]]'''&lt;br /&gt;
:Information about scripting Code::Blocks with [http://www.squirrel-lang.org/ Squirrel].&lt;br /&gt;
&lt;br /&gt;
'''[[wxSmith tutorials]]'''&lt;br /&gt;
:Information about how to use wxSmith RAD editor&lt;br /&gt;
&lt;br /&gt;
'''[[Building an Non-Unicode Win32 Code::Blocks]]'''&lt;br /&gt;
:Information about how to modify the Code::Blocks project files for an Non-Unicode build of Code::Blocks.&lt;br /&gt;
&lt;br /&gt;
'''[[Miscellaneous]]'''&lt;br /&gt;
:Miscellaneous things related to the user development experience.  This is a catch all place.&lt;br /&gt;
&lt;br /&gt;
== Application development ==&lt;br /&gt;
&lt;br /&gt;
* [[Builtin variables]]&lt;br /&gt;
* [[Recommended global variables]]&lt;br /&gt;
* [[Code::Blocks variable types synthesis]]&lt;br /&gt;
* [[Debugging with Code::Blocks]]&lt;br /&gt;
* [[Adding support for non C/C++ files to the build system]]&lt;br /&gt;
&lt;br /&gt;
== Compilers ==&lt;br /&gt;
&lt;br /&gt;
* [[Global compiler variables]]&lt;br /&gt;
* [[Precompiled headers]]&lt;br /&gt;
* [[Installing a supported compiler]]&lt;br /&gt;
* [[Installing Cygwin Compiler]]&lt;br /&gt;
* [[Installing Fortran Compiler]]&lt;br /&gt;
* [[Installing Uniwin remote compiler]]&lt;br /&gt;
* [[Code::Blocks_and_Cross_Compilers|Using cross compilers]]&lt;br /&gt;
* [[Cross_Compiling_wxWidgets_Applications_on_Linux|Cross compiling wxWidgets applications on Linux]]&lt;br /&gt;
* [[Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE]]&lt;br /&gt;
* [[Integrating Microsoft Visual C 6 with Code::Blocks IDE]]&lt;br /&gt;
* [[64Bit Windows|Setting up for 64-bit windows development with Mirosoft compilers]]&lt;br /&gt;
* [[Using the Code::Blocks IDE with SDCC on PIC MCUs]]&lt;br /&gt;
* [[Using Code::Blocks with Open Watcom]]&lt;br /&gt;
&lt;br /&gt;
== User interface development ==&lt;br /&gt;
&lt;br /&gt;
* [[WxSmith Tutorial &amp;amp; Pointers|Creating a dialog for wxWidgets with wxSmith]]&lt;br /&gt;
&lt;br /&gt;
== Third-party libraries ==&lt;br /&gt;
&lt;br /&gt;
* [[BoostWindowsQuickRef|Using Boost with Code::Blocks (Windows)]]&lt;br /&gt;
* [[WxWindowsQuickRef|Using wxWidgets with Code::Blocks (Windows)]]&lt;br /&gt;
* [[Using SDL with Code::Blocks]]&lt;br /&gt;
* [[Using GLFW with Code::Blocks]]&lt;br /&gt;
* [[Using Allegro with Code::Blocks]]&lt;br /&gt;
&lt;br /&gt;
== Third-party Applications ==&lt;br /&gt;
&lt;br /&gt;
* [[KiCadBuildQuickRef|How-to build KiCad with Code::Blocks]]&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Using_Allegro_with_Code::Blocks&amp;diff=6046</id>
		<title>Using Allegro with Code::Blocks</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Using_Allegro_with_Code::Blocks&amp;diff=6046"/>
		<updated>2009-09-06T17:30:46Z</updated>

		<summary type="html">&lt;p&gt;Seronis: New page: Category:User Documentation  ==What is Allegro== &amp;lt;blockquote&amp;gt;&amp;quot;Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Un...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
&lt;br /&gt;
==What is Allegro==&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;quot;Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Unix (Linux, FreeBSD, Irix, Solaris, Darwin), Windows, QNX, BeOS and MacOS X. It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI. Read more details on the introductory page.&amp;quot;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Important Links:'''&lt;br /&gt;
* '''[http://alleg.sourceforge.net/readme.html Official Site]''' - Readme / Introduction&lt;br /&gt;
* '''[http://alleg.sourceforge.net/wip.html Download]''' - Stable and Developement branches&lt;br /&gt;
* '''[http://wiki.allegro.cc/index.php?title=Getting_Started Getting Started]''' - Unofficial wiki with information on how to set up many popular IDEs for use with Allegro&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5974</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5974"/>
		<updated>2009-07-26T19:26:00Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Include Boost headers and link with Boost libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.39.0'''. [http://sourceforge.net/projects/boost/files/ Click here to browse the Boost 1.39.0 downloadable files] (26.6 MB). You can check [http://www.boost.org/users/download/ the Boost download page] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.4 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_39_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_39_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_39&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_39&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgw44-mt-1_39&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw44-mt-1_39.lib&amp;quot; and &amp;quot;boost_system-mgw44-mt-1_39.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
No Frequently Asked Questions (or Frequently Given Answers) have been entered yet.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5973</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5973"/>
		<updated>2009-07-26T19:24:00Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Set up a Code::Blocks global variable for Boost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.39.0'''. [http://sourceforge.net/projects/boost/files/ Click here to browse the Boost 1.39.0 downloadable files] (26.6 MB). You can check [http://www.boost.org/users/download/ the Boost download page] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.4 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_39_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_39_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_39&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_39&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgw34-mt-1_37&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw34-mt-1_37.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_37.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
No Frequently Asked Questions (or Frequently Given Answers) have been entered yet.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5972</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5972"/>
		<updated>2009-07-26T19:22:42Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Build Boost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.39.0'''. [http://sourceforge.net/projects/boost/files/ Click here to browse the Boost 1.39.0 downloadable files] (26.6 MB). You can check [http://www.boost.org/users/download/ the Boost download page] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.4 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_39_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_39_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_37&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_37&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgw34-mt-1_37&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw34-mt-1_37.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_37.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
No Frequently Asked Questions (or Frequently Given Answers) have been entered yet.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5971</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5971"/>
		<updated>2009-07-26T19:21:29Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Boost Source Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up Boost with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5#windows the latest stable release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download Boost ==&lt;br /&gt;
You can download the Boost source code and compile it yourself, or, ''only if you are using MSVC 2003 (7.1) or later'', you can use a web-based installer to download pre-built libraries.&lt;br /&gt;
&lt;br /&gt;
=== Boost Source Code ===&lt;br /&gt;
The Boost libraries are distributed as source code archived in .7z, .tar.bz2, .tar.gz, or .zip format; choose whichever archive format is easiest for you to unpack. The current stable release of Boost is '''1.39.0'''. [http://sourceforge.net/projects/boost/files/ Click here to browse the Boost 1.39.0 downloadable files] (26.6 MB). You can check [http://www.boost.org/users/download/ the Boost download page] to see if a newer stable version is available.&lt;br /&gt;
&lt;br /&gt;
You also need to download Boost Jam in order to build Boost. The current stable release of Boost Jam is '''3.1.17'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.17-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.17-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack both archives to paths without spaces.''' You should choose a volume with at least 1.4 GB of free space. Typically, the Boost sources and Boost Jam are unpacked in separate locations, ending up with &amp;quot;&amp;lt;path&amp;gt;\boost_1_39_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Boost Installer for MSVC 2003 (7.1) or later ===&lt;br /&gt;
BoostPro Computing distributes a free web-based installer that will download and install prebuilt versions of the Boost libraries for MSVC. [http://www.boostpro.com/products/free Click here to browse the BoostPro Free Downloads]. The amount of space used by the installation varies depending on which libraries and variants you choose.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build Boost ==&lt;br /&gt;
''This step is unnecessary if you are using the '''BoostPro installer''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Ensure that Boost Jam is in the PATH environment variable (where &amp;lt;path&amp;gt; is the path you unpacked Boost Jam to):&lt;br /&gt;
 set PATH=&amp;lt;path&amp;gt;\boost-jam-3.1.17-1-ntx86;%PATH%&lt;br /&gt;
* Change to the Boost sources directory (where &amp;lt;path&amp;gt; is the path you unpacked the Boost sources to):&lt;br /&gt;
 cd &amp;lt;path&amp;gt;\boost_1_37_0&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries; typically C:\Program Files\CodeBlocks):&lt;br /&gt;
 bjam --toolset=gcc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* The recommended command to use for '''MSVC''' is (where &amp;lt;installpath&amp;gt; is where you want the Boost headers and libraries):&lt;br /&gt;
 bjam --toolset=msvc &amp;quot;--prefix=&amp;lt;installpath&amp;gt;&amp;quot; install&lt;br /&gt;
* This step will generally take 5-20 minutes, depending on the capabilities of your PC.&lt;br /&gt;
* The above commands will build release, multithreaded, DLL versions of the Boost libraries. If you want other variants, add --build-type=complete to the command line. This will take a much longer amount of time to build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Add Boost to an existing project in Code::Blocks ==&lt;br /&gt;
The Boost libraries are usable in nearly any Code::Blocks project. You can create a new project that will use Boost or open an existing project. With your project open, perform these steps.&lt;br /&gt;
&lt;br /&gt;
=== Set up a Code::Blocks global variable for Boost ===&lt;br /&gt;
This step only needs to be performed once, after which the global variable you've created will be available for any project.&lt;br /&gt;
* Open the Settings menu and select &amp;quot;Global variables...&amp;quot;&lt;br /&gt;
* Click the &amp;quot;New&amp;quot; button next to the Current variable list, specify a name like &amp;quot;boost&amp;quot;, and hit OK&lt;br /&gt;
* In the &amp;quot;base&amp;quot; field of the Builtin fields section, browse for the base of your Boost installation -- the path you specified in the --prefix option of the build command&lt;br /&gt;
* In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_37&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\include\boost-1_37&amp;quot; tacked on.&lt;br /&gt;
* Hit the Close button to save your global variable&lt;br /&gt;
&lt;br /&gt;
=== Add Boost search directories to your project ===&lt;br /&gt;
* Right-click your project's name in the Projects section of the Management window and select &amp;quot;Build options...&amp;quot;&lt;br /&gt;
* Highlight the root of your project in the tree on the left side of the Project build options window&lt;br /&gt;
* Select the &amp;quot;Search directories&amp;quot; tab&lt;br /&gt;
* With the &amp;quot;Compiler&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.include)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
''If you are using the bundled version of MinGW with Code::Blocks, and you used your C::B installation in the --prefix option as recommended, the following step is unnecessary''&lt;br /&gt;
* With the &amp;quot;Linker&amp;quot; subtab selected, click the Add button, enter &amp;quot;$(#boost.lib)&amp;quot; (without the quotes), and hit OK&lt;br /&gt;
&lt;br /&gt;
=== Include Boost headers and link with Boost libraries ===&lt;br /&gt;
Your project is now ready to use the Boost libraries. For each library you want to use, do the following:&lt;br /&gt;
* #include &amp;lt;boost/*.hpp&amp;gt; in your source file&lt;br /&gt;
* In your project's build options, highlight the root of your project, select the &amp;quot;Linker settings&amp;quot; tab, and add &amp;quot;boost_*-mgw34-mt-1_37&amp;quot; to your Link libraries&lt;br /&gt;
For examle, use &amp;quot;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;quot;, &amp;quot;boost_filesystem-mgw34-mt-1_37.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_37.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation, you can use these [http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ two examples]  to test whether your boost installation and the configuration of your Code::Blocks are successful.&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
No Frequently Asked Questions (or Frequently Given Answers) have been entered yet.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef&amp;diff=5970</id>
		<title>WxWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef&amp;diff=5970"/>
		<updated>2009-07-26T18:50:46Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* wxWidgets Sources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
'''''A beginner's quick reference for setting up wxWidgets with Code::Blocks in Windows'''''&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:smaller&amp;quot;&amp;gt;Supported compilers: MinGW or MSVC&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://shiningray.cn/windows-shang-pei-zhi-codeblocks-wxwidgets.html Chinese Translation]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Requirements:'''&lt;br /&gt;
* '''Windows compiler''' - You need to have correctly installed the free [http://www.mingw.org/ MinGW/GCC] compiler or one of [http://msdn.microsoft.com/vstudio/ Microsoft's compilers] (the [http://msdn.microsoft.com/vstudio/express/ Express editions] are free, but you must also install the [http://www.microsoft.com/downloads/details.aspx?familyid=0baf2b35-c656-4969-ace8-e4c0c0716adb Platform SDK]). The [https://www.codeblocks.org/downloads/5#windows latest stable release of Code::Blocks] includes a MinGW-bundled version which includes all necessary packages; or, if you install it by hand, you need at least the gcc-core, gcc-g++, binutils, w32api, and mingw32-make packages. Also, ensure that the folder containing the compiler executables (typically C:\Program Files\CodeBlocks\bin) is in your [http://vlaurie.com/computers2/Articles/environment.htm#editing Windows PATH environment variable].&lt;br /&gt;
* '''Recent version of Code::Blocks''' - You need to have successfully installed and run a recent version of Code::Blocks -- either [https://www.codeblocks.org/downloads/5 the 8.02 release] or [/index.php/board,20.0.html a recent nightly build].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Download wxWidgets ==&lt;br /&gt;
You can choose to download the wxWidgets source code and compile it yourself, or download the &amp;quot;wxPack&amp;quot;, a precompiled version.&lt;br /&gt;
* '''The wxWidgets sources''' are a much smaller download, but you must also spend some time compiling them.&lt;br /&gt;
* '''wxPack''' is a much larger download, but you don't have to spend time compiling it or worry about build options.&lt;br /&gt;
&lt;br /&gt;
=== wxWidgets Sources ===&lt;br /&gt;
The current recommended version of wxWidgets to use is '''2.8.10'''. [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.10-Setup.exe Click here to download the wxWidgets 2.8.10 sources for Windows] (wxMSW-2.8.10-Setup.exe; 12.2 MB). You can check [http://www.wxwidgets.org/downloads/ the wxWidgets download page] to see if a newer stable version is available. '''It is highly recommended that you install the sources to a path without spaces.''' You should choose a volume with at least 300 MB of free space.&lt;br /&gt;
&lt;br /&gt;
=== wxPack ===&lt;br /&gt;
The current stable release of wxPack is '''v2.8.8.04''', based on wxWidgets 2.8.8. [http://downloads.sourceforge.net/wxpack/wxPack_v2.8.8.04.exe?download Click here to download wxPack v2.8.8.04] (wxPack_v2.8.8.04.exe, 315.9 MB). You can check [http://wxpack.sourceforge.net/Main/Downloads the wxPack download page] to see if a newer stable version is available. '''It is highly recommended that you install wxPack in a path without spaces.''' You should choose a volume with at least 700 MB of free space for MSVC, or 2.2 GB of free space for MinGW/GCC.&lt;br /&gt;
&lt;br /&gt;
== Build wxWidgets ==&lt;br /&gt;
''This step is unnecessary if you are using '''wxPack''' ''&lt;br /&gt;
&lt;br /&gt;
* Open up a command prompt for building. If you are using MinGW/GCC, simply use the standard Windows command shell (open the Start menu, click &amp;quot;Run...&amp;quot;, enter &amp;quot;cmd&amp;quot; and hit OK). If you are using MSVC, you should use the special command shell which sets up the correct environment variables for you. If you use a version of MSVC which required you to download the Platform SDK separately, ensure that whichever command environment you use includes the Platform SDK tools and paths as well as the standard compiler tools and paths.&lt;br /&gt;
* Change to the wxWidgets build directory (where &amp;lt;wxWidgets&amp;gt; is the path you extracted the sources to; typically C:\wxWidgets-2.8.9):&lt;br /&gt;
 cd &amp;lt;wxWidgets&amp;gt;\build\msw&lt;br /&gt;
* Execute the build command. The recommended command to use for '''MinGW/GCC''' is:&lt;br /&gt;
 mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1&lt;br /&gt;
* The recommended command to use for '''MSVC''' is:&lt;br /&gt;
 nmake -f makefile.vc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1&lt;br /&gt;
* This step will generally take a long time; faster PCs may expect 30-minute build times, and slower PCs can take as much as several hours.&lt;br /&gt;
* If using more recent versions of GCC, many warnings will occur during the build. This can slow the build process noticeably; you may want to redirect the warnings to a text file by appending &amp;quot;2&amp;gt;errlog.txt&amp;quot; to the build command, or supress them entirely by appending &amp;quot;2&amp;gt;nul&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
See the section below titled &amp;quot;wxWidgets build options explained&amp;quot; for details on the meaning of the BUILD, SHARED, MONOLITHIC, and UNICODE options. These options are critically important, because they define the basic wxWidgets development environment you will be using. You must duplicate them exactly when running Code::Blocks' wxWidgets project wizard.&lt;br /&gt;
&lt;br /&gt;
== Create a wxWidgets project in Code::Blocks ==&lt;br /&gt;
* On the Code::Blocks Start Page, select &amp;quot;Create a new project&amp;quot;; alternatively, open the File menu, highlight &amp;quot;New&amp;quot; and select &amp;quot;Project...&amp;quot;&lt;br /&gt;
* Select &amp;quot;wxWidgets project&amp;quot;&lt;br /&gt;
# The first page is an introduction, which you can choose to skip in the future.&lt;br /&gt;
# Select which version of wxWidgets you will be using. If you followed the instructions above, you should select &amp;quot;wxWidgets 2.8.x&amp;quot;.&lt;br /&gt;
# Set your project title and location.&lt;br /&gt;
# Enter author details if you wish (not required).&lt;br /&gt;
# Select options for automatic code and file generation.&lt;br /&gt;
# Select wxWidgets' location. It's highly recommended that you use a global variable for this: enter &amp;quot;$(#wx)&amp;quot; (without quotes). If you haven't already defined this global variable, the global variables dialog will appear; for the base path, select your wxWidgets installation location. You don't need to fill in the other paths.&lt;br /&gt;
# Select debug and/or release configurations for your project. The debug configuration at least is recommended.&lt;br /&gt;
# Choose your wxWidgets build options. '''These must match the options used when you built wxWidgets!''' If you followed the directions above, select all three of the options under &amp;quot;wxWidgets Library Settings&amp;quot;. '''If you are using wxPack:''' wxPack includes each version, so you may select whichever options you prefer. The other settings on this page are not related to the wxWidgets build options; you may use them or not as you prefer. In order to avoid using a debug wxWidgets build (as recommended), you must select &amp;quot;Configure Advanced options&amp;quot; and then leave &amp;quot;Use __WXDEBUG__ and Debug wxWidgets lib&amp;quot; unchecked on the next page.&lt;br /&gt;
# Select additional libraries if required. You should not need to select any of these for normal usage.&lt;br /&gt;
&lt;br /&gt;
== Build and Run ==&lt;br /&gt;
Select &amp;quot;Build and run&amp;quot; (F9) to, well, build and run. If all goes well, your wxWidgets basic program should appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== wxWidgets Build Options Explained ==&lt;br /&gt;
''What do the BUILD, SHARED, MONOLITHIC, and UNICODE options mean?''&lt;br /&gt;
&lt;br /&gt;
=== BUILD ===&lt;br /&gt;
BUILD controls whether a debug version (BUILD=debug) or release version (BUILD=release) of wxWidgets itself is built. In the vast majority of cases you will only need a release version of wxWidgets, since you won't be interesting in debugging wxWidgets itself. You can still create debug builds of your own programs that link to a release build of wxWidgets.&lt;br /&gt;
* A '''debug''' build of wxWidgets creates libraries with a &amp;quot;d&amp;quot; suffix -- for example, &amp;quot;libwxmsw28d.a&amp;quot;/&amp;quot;wxmsw28d_gcc_custom.dll&amp;quot;.&lt;br /&gt;
* A '''debug''' build of wxWidgets creates the folder &amp;quot;mswd&amp;quot; or &amp;quot;mswud&amp;quot; in the wxWidgets library output folder.&lt;br /&gt;
* A '''release''' build of wxWidgets creates libraries ''without'' the &amp;quot;d&amp;quot; suffix -- for example, &amp;quot;libwxmsw28.a&amp;quot;/&amp;quot;wxmsw28_gcc_custom.dll&amp;quot;.&lt;br /&gt;
* A '''release''' build of wxWidgets creates the folder &amp;quot;msw&amp;quot; or &amp;quot;mswu&amp;quot; in the wxWidgets library output folder.&lt;br /&gt;
&lt;br /&gt;
=== SHARED ===&lt;br /&gt;
SHARED controls whether a DLL (SHARED=1) or static (SHARED=0) version of wxWidgets is built. With a DLL build, compile times are faster and the executable size is smaller. The total size of a single executable plus the wxWidgets DLL is greater, but multiple executables can use the same DLL.&lt;br /&gt;
* A '''DLL''' build of wxWidgets creates import libraries (such as libwxmsw28.a) and DLLs (such as wxmsw28_gcc_custom.dll). You must include the DLL when you distribute your program.&lt;br /&gt;
* A '''static''' build of wxWidgets creates static libraries only (such as libwxmsw28.a), and you do not need to distribute a wxWidgets DLL.&lt;br /&gt;
&lt;br /&gt;
=== MONOLITHIC ===&lt;br /&gt;
MONOLITHIC controls whether a single library (MONOLITHIC=1) or multiple component libraries (MONOLITHIC=0) are built. With a monolithic build, project setup and development are much easier, and you only have one DLL to distribute if you're using a DLL build. With a non-monolithic (multilib) build, several different libraries are built and you can avoid linking with the entire wxWidgets codebase for programs that don't need it. You do have to ensure that you choose the correct component libraries.&lt;br /&gt;
* A '''monolithic''' build of wxWidgets creates a single wxWidgets import library (such as libwxmsw28.a) and a single DLL (such as wxmsw28_gcc_custom.dll).&lt;br /&gt;
* A '''multilib''' build of wxWidgets creates multiple import libraries (libwx28_base.a, etc.) and multiple DLLs.&lt;br /&gt;
* Additional '''static''' libraries are always created with any wxWidgets build (libwxexpat.a, libwxjpeg.a, etc.). These libraries do not normally need to be used with DLL builds of wxWidgets, but they are required when using static builds.&lt;br /&gt;
&lt;br /&gt;
=== UNICODE ===&lt;br /&gt;
UNICODE controls whether wxWidgets and your program use wide-character strings with Unicode support. Most programs for Windows 2000 and later should do so. Earlier versions of Windows don't have the necessary Unicode support. You should always use wxWidget's _(&amp;quot;string&amp;quot;) and _T(&amp;quot;string&amp;quot;) macros to ensure that your hardcoded strings are the correct type.&lt;br /&gt;
* A '''Unicode''' (UNICODE=1) build of wxWidgets creates libraries with a &amp;quot;u&amp;quot; suffix -- for example, &amp;quot;libwxmsw28u.a&amp;quot;/&amp;quot;wxmsw28u_gcc_custom.dll&amp;quot;.&lt;br /&gt;
* A '''Unicode''' build of wxWidgets creates the folder &amp;quot;mswu&amp;quot; or &amp;quot;mswud&amp;quot; in the wxWidgets library output folder.&lt;br /&gt;
* An '''ANSI''' (UNICODE=0) build of wxWidgets creates libraries ''without'' the &amp;quot;u&amp;quot; suffix -- for example, &amp;quot;libwxmsw28.a&amp;quot;/&amp;quot;wxmsw28_gcc_custom.dll&amp;quot;.&lt;br /&gt;
* An '''ANSI''' build of wxWidgets creates the folder &amp;quot;msw&amp;quot; or &amp;quot;mswd&amp;quot; in the wxWidgets library output folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Frequently Asked Questions ==&lt;br /&gt;
&lt;br /&gt;
'''I get errors like &amp;quot;wx/setup.h: No such file or directory&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
You're missing an important compiler search path in your build options. Make sure you choose the correct wxWidgets build configuration when running the wxWidgets project wizard. If re-running the wizard isn't an option, then open your project's build options and add &amp;quot;$(#wx.lib)\gcc_dll\mswu&amp;quot; (assuming a &amp;lt;u&amp;gt;monolithic Unicode DLL&amp;lt;/u&amp;gt; build) to the compiler search paths.&lt;br /&gt;
&lt;br /&gt;
'''I get errors like &amp;quot;cannot find -lwxmsw28u&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
You have an incorrect link library in your build options. Make sure you choose the correct wxWidgets build configuration when running the wxWidgets project wizard. If re-running the wizard isn't an option, determine which version of the library is built and adjust the library name in your build options accordingly.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=5634</id>
		<title>Installing Code::Blocks from source on Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows&amp;diff=5634"/>
		<updated>2008-08-24T22:01:37Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* wxWidgets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Installing Code::Blocks]]&lt;br /&gt;
[[Category:Installing Code::Blocks from source]]&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
'''Note for RC2 users'''&lt;br /&gt;
&lt;br /&gt;
The older Code::Blocks RC2 does not support global compiler variables which were added after RC2 was released and is unable to read project files generated with post-RC2 versions.&lt;br /&gt;
To build Code::Blocks, you need a post-RC2 build, such as  any of the ''nightly builds'' obtainable by [/index.php?board=20.0 searching the forum].&lt;br /&gt;
&lt;br /&gt;
=== MinGW compiler ===&lt;br /&gt;
&lt;br /&gt;
At the present time, Code::Blocks only compiles successfully with the MinGW compiler (or any other gcc for that matter). You will need a complete, working [[MinGW installation]].&lt;br /&gt;
&lt;br /&gt;
Since November 2007 MinGW-GCC 4.2.1&lt;br /&gt;
&lt;br /&gt;
=== wxWidgets ===&lt;br /&gt;
&lt;br /&gt;
[http://wxwidgets.org/ wxWidgets.org]&lt;br /&gt;
&lt;br /&gt;
Code::Blocks officially supports wxWidgets 2.6.3 (although any 2.6+ version probably works).&amp;lt;br/&amp;gt;&lt;br /&gt;
Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.3-1.zip wxMSW-2.6.3-1.zip].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses&lt;br /&gt;
* since May 2007 wxWidgets 2.8.4&amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.4.zip wxMSW-2.8.4.zip]&lt;br /&gt;
&lt;br /&gt;
* since November 2007 wxWidgets 2.8.6 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.6.zip wxMSW-2.8.6.zip]&lt;br /&gt;
&lt;br /&gt;
* since 28 November 2007 wxWidgets 2.8.7 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.7.zip wxMSW-2.8.7.zip]&lt;br /&gt;
&lt;br /&gt;
* since 19 July 2008 wxWidgets 2.8.8 &amp;lt;br/&amp;gt;Download: [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.8.zip wxMSW-2.8.8.zip]&lt;br /&gt;
&lt;br /&gt;
For latest infos check forum: [/index.php?topic=3299.0 Important changes to the nightly builds]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You do ''not'' need MSYS (''in fact, if you have MSYS, make sure it is not in your PATH when building wxWidgets'').&lt;br /&gt;
&lt;br /&gt;
=== SVN client ===&lt;br /&gt;
&lt;br /&gt;
In order to check out the Code::Blocks sources you will need a SVN client.&lt;br /&gt;
For convenience, it is recommended that you install [http://tortoisesvn.net/downloads TortoiseSVN] on your machine, as this is a lot more comfortable. However, if you get a bad feeling when some program is messing with your Explorer menu, then you can use the [http://subversion.tigris.org/project_packages.html svn command-line client] equally well.&lt;br /&gt;
&lt;br /&gt;
It is generally a good idea to install the command-line client (and adding it to PATH) even if you use TortoiseSVN for convenience. The &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; tool which is used during the build of Code::Blocks makes use of the &amp;lt;tt&amp;gt;svn&amp;lt;/tt&amp;gt; binary if it is available. This is preferrable to the manual parsing of the entries file that is used as fallback.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please do note that working copies checked out with the 1.4 version of Subversion are no longer compatible with earlier versions (Subversion will transparently update existing repositories).&lt;br /&gt;
&lt;br /&gt;
The builtin fallback mechanism in &amp;lt;tt&amp;gt;autorevision&amp;lt;/tt&amp;gt; has been updated to the new 1.4 format and will no longer work with the old format.&amp;lt;br&amp;gt;&lt;br /&gt;
Therefore, if you use a Subversion client from the 1.0-1.3 line, you ''must'' put the commandline tool into &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; for a successful build.&amp;lt;br&amp;gt;&lt;br /&gt;
If you use Subversion 1.4, then it is good practice nevertheless, but you can do without, too.&lt;br /&gt;
&lt;br /&gt;
=== zip.exe ===&lt;br /&gt;
&lt;br /&gt;
You'll also need a working 'zip' program.&lt;br /&gt;
If you have the version listed on our [https://wiki.codeblocks.org/index.php?title=Mingw#Other_developer_tools tools page], you'll be fine.&lt;br /&gt;
&lt;br /&gt;
The zip program coming with cygwin will ''not'' work properly. You do ''not'' need WinZip.&lt;br /&gt;
&lt;br /&gt;
Make sure the zip binary is in your PATH so the &amp;lt;tt&amp;gt;update.bat&amp;lt;/tt&amp;gt; script will be able to find it (alternatively, you can edit the batch file, setting the ZIPCMD variable to something else).&lt;br /&gt;
&lt;br /&gt;
The easiest way is to put zip.exe into &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; inside your MinGW installation directory (that folder is normally in the path).&lt;br /&gt;
&lt;br /&gt;
=== Code::Blocks sources ===&lt;br /&gt;
&lt;br /&gt;
You will also (obviously) need the Code::Blocks sources. &lt;br /&gt;
&lt;br /&gt;
Using ''TortoiseSVN'', make a folder where you want to store the sources, right-click on the folder, and select &amp;quot;SVN Checkout...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In the top box, enter svn://svn.berlios.de/codeblocks/trunk and hit the OK button.&lt;br /&gt;
&lt;br /&gt;
Using ''svn'', you have to open a command prompt (&amp;quot;DOS Window&amp;quot;). Make a folder, change directory, and run svn:&lt;br /&gt;
&lt;br /&gt;
  mkdir codeblocks-head&lt;br /&gt;
  cd codeblocks-head&lt;br /&gt;
  svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
&lt;br /&gt;
=== Unicode Build ===&lt;br /&gt;
&lt;br /&gt;
==== Compile wxWidgets in Unicode mode ====&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:&lt;br /&gt;
&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1&lt;br /&gt;
&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
''remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well.''&lt;br /&gt;
''Use the same commands as for the release build, but replace &amp;quot;release&amp;quot; by &amp;quot;debug&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
==== Compile Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Open the project CodeBlocks.cbp. You will be prompted to define the global variable $(#wx). Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
After the compilaton has finished, copy &amp;lt;tt&amp;gt;lib\gcc_dll\wxmsw26u_gcc_custom.dll&amp;lt;/tt&amp;gt; from the wxWidgets directory to the &amp;lt;tt&amp;gt;src\devel&amp;lt;/tt&amp;gt; directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into dll hell).&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt; (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
The stripped (&amp;quot;production&amp;quot;) executable is found in &amp;lt;tt&amp;gt;output&amp;lt;/tt&amp;gt; together with all libraries and data files. If you want a version with debug symbols instead (caution: huge size!), use the one found in the &amp;lt;tt&amp;gt;devel&amp;lt;/tt&amp;gt; folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Congratulations, you own a freshly built version of Code::Blocks!&lt;br /&gt;
&lt;br /&gt;
For future updates, go into the Code::Blocks root directory and run &amp;lt;tt&amp;gt;svn update&amp;lt;/tt&amp;gt; (or use TurtoiseSVN to the same effect).&amp;lt;br/&amp;gt;&lt;br /&gt;
Then open and build the project as described before (and any contrib plugins that you wish to use), and re-run &amp;lt;tt&amp;gt;src\update.bat&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Install Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
==== Compile contributed (or your own) plugins ====&lt;br /&gt;
&lt;br /&gt;
The workspace file ContribPlugins.workspace contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all).&amp;lt;br/&amp;gt;&lt;br /&gt;
When you open the contrib plugins workspace, you will be asked to define the &amp;lt;tt&amp;gt;$(#cb)&amp;lt;/tt&amp;gt; global compiler variable. This is the path that contains the sdk folder normally this is codeblocks\src. The build process uses this information to place the plugins and data files into the correct place. Enter the location of the Code::Blocks sources in the same way as for the &amp;lt;tt&amp;gt;$(#wx)&amp;lt;/tt&amp;gt; variable earlier.&lt;br /&gt;
&lt;br /&gt;
Don't forget to run update.bat again after building the contrib plugins.&lt;br /&gt;
&lt;br /&gt;
=== ANSI Build ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f7d9d9; border: 1px solid #000&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== DEPRECATION WARNING: ====&lt;br /&gt;
As of February 2006, the official default build for Code::Blocks is '''Unicode''' (see above). Although ANSI builds are technically possible, we discourage their use unless there is a good reason.&amp;lt;br/&amp;gt;&lt;br /&gt;
''Support for ANSI builds is likely to be dropped after Version 1.0 is out.''&lt;br /&gt;
&lt;br /&gt;
There is hardly any good argument against using a Unicode build if your OS supports Unicode, even if you do not understand any other language than English, as a Unicode version guarantees that it will be able to work with whatever languages you may possibly encounter in the future -- at a very reasonable cost.&lt;br /&gt;
&lt;br /&gt;
However, if you absolutely don't care about Unicode or if you are bound to use Windows 95, then you may want to build an ANSI version nevertheless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Compile wxWidgets in ANSI mode ====&lt;br /&gt;
&lt;br /&gt;
After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets&lt;br /&gt;
&lt;br /&gt;
  set path=c:\mingw\bin;c:\mingw\mingw32\bin&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean&lt;br /&gt;
  mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0&lt;br /&gt;
&lt;br /&gt;
This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else.&lt;br /&gt;
&lt;br /&gt;
You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed.&lt;br /&gt;
&lt;br /&gt;
'''Optional:'''&lt;br /&gt;
&lt;br /&gt;
To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.&lt;br /&gt;
&lt;br /&gt;
==== Compile Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Open the project CodeBlocks.cbp. You will be prompted to define the global variable $(#wx) if you have not used it before. Enter the location where you unpacked wxWidgets.&lt;br /&gt;
&lt;br /&gt;
'''Important:'''  The project file is set to compile an Unicode version of Code::Blocks by default. To make an ANSI build, you have to make the following two changes to build options before compiling:&lt;br /&gt;
1. In the &amp;quot;Compiler&amp;quot; tab, under &amp;quot;#defines&amp;quot;, remove the entry wxUSE_UNICODE.&lt;br /&gt;
2. Under &amp;quot;Custom variables&amp;quot;, set the variable WX_SUFFIX to empty (default value: u).&lt;br /&gt;
&lt;br /&gt;
Hit the blue gear and lean back. Compilation may take 3-5 minutes, depending on the speed of your computer.&lt;br /&gt;
&lt;br /&gt;
After the compilaton has finished, copy wxmsw26u_gcc_custom.dll from lib\gcc_dll inside the wxWidgets directory to the devel directory inside the Code::Blocks source folder (it will also work if you keep a copy of that library in your Windows folder or anywhere in your system path, but this is generally not recommended because you can get into [http://en.wikipedia.org/wiki/DLL_hell dll hell] ).&lt;br /&gt;
Run update.bat (located in the root source directory). This will pack the resource files and copy libraries and plugins to their correct locations.&lt;br /&gt;
The location of executable is src\output in C::B tree. From here you'll not need the nighty build anymore.&lt;br /&gt;
&lt;br /&gt;
One little note for svn updates and rebuilds : just go into the codeblocks root directory and do '''svn update''' (or use Turtoise svn).&lt;br /&gt;
&lt;br /&gt;
Then run the src/output/codeblocks.exe, reload project, build it, reload plugins workspace, build it, quit codeblocks and re-run update.bat. You'll have an up-to-date C::B in 3 minutes !&lt;br /&gt;
&lt;br /&gt;
==== Install Code::Blocks ====&lt;br /&gt;
&lt;br /&gt;
Copy the folder output to where you want Code::Blocks to reside.&lt;br /&gt;
&lt;br /&gt;
==== Compile contributed (or your own) plugins ====&lt;br /&gt;
&lt;br /&gt;
The workspace file ContribPlugins.workspace contains the project files for all contributed plugins. Open that workspace and compile the plugins which you would like to use (or select &amp;quot;Build Workspace&amp;quot; from the context menu if you want them all). Don't forget to run update.bat again after building the contrib plugins.&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista&amp;diff=5486</id>
		<title>Installing MinGW with Vista</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista&amp;diff=5486"/>
		<updated>2008-04-09T15:25:37Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* Compiler */ Added additional compiler search directory so that locale.h, required by clocale, is available&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
--[[User:Darthdespotism|Darthdespotism]] 07:23, 29 June 2007 (UTC)&lt;br /&gt;
== Before we start ==&lt;br /&gt;
&lt;br /&gt;
Before starting to install MinGW under Windows Vista there are some things to remember:&lt;br /&gt;
&lt;br /&gt;
* MinGW '''must''' be located on the same partition as the files you want to compile&lt;br /&gt;
* There may be issues if you don't install MinGW in the toplevel folder (e.g. C:\MinGW) but in some folder (e.g. C:\Compilers\MinGW).  There is a possible solution to this problem (see the &amp;quot;Troubleshooting&amp;quot; section at the bottom of this page).&lt;br /&gt;
&lt;br /&gt;
For this HOWTO I used some Conventions:&lt;br /&gt;
&lt;br /&gt;
* I assumed you are going to install in C:, if you want to install on another partition (which may be clever as the sources must be on the same partition) you'll have to modifie the path acordingly&lt;br /&gt;
* I used ''MinGW-Version'' to indicate that you must use your Version of MinGW here. As you can see on my pictures it is for me 4.2.0 and for those who downloaded on [http://mingw.org http://mingw.org] it is most probably 3.4.2&lt;br /&gt;
&lt;br /&gt;
Just one thing left: I've done this under Vista Business and a friend of mine reported it working with Home Premium. I hope it works on the other versions, too.&lt;br /&gt;
&lt;br /&gt;
== Getting MinGW ==&lt;br /&gt;
First of all you need the MinGW Compiler to be installed. I used the installer but all methods desciribed under [[MinGW installation]] should work fine. You may althoug want to upgrade your Version of MinGW to 4.* though. When you finished installing the basic MinGW we'll start making it work with Windows Vista. (Note: There is no need to set any %PATH% - variables when you use only Codeblocks, this is the way I'll focuse on)&lt;br /&gt;
&lt;br /&gt;
== Actual Setup ==&lt;br /&gt;
&lt;br /&gt;
=== Executeables ===&lt;br /&gt;
If you haven't already done it it is time to install and start Code::Blocks. It's a good idea to create a sample &amp;quot;console application&amp;quot; so you have a basic &amp;quot;Hello world&amp;quot; to test your progress. As I first tried to run &amp;quot;Compile&amp;quot; without any Modifications I got the following Error:&lt;br /&gt;
&lt;br /&gt;
 -------------- Build: Debug in test ---------------&amp;lt;br /&amp;gt;&lt;br /&gt;
 Compiling: main.cpp&amp;lt;br /&amp;gt;&lt;br /&gt;
 mingw32-g++.exe: CreateProcess: No such file or directory&amp;lt;br /&amp;gt;&lt;br /&gt;
 Process terminated with status 1 (0 minutes, 0 seconds)&amp;lt;br /&amp;gt;&lt;br /&gt;
 0 errors, 0 warnings&lt;br /&gt;
&lt;br /&gt;
This doesn't tell us very much. The problem here actually is, that MinGW is unable to find its helper executeables, in this case cc1plus.exe. To fix this go to your &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Compiler and Debugger&amp;quot; -&amp;gt; &amp;quot;Toolchain executeables&amp;quot; -&amp;gt; &amp;quot;Additional paths&amp;quot; and add there the Directory &amp;quot;C:\MinGW\libexec\gcc\mingw32\''MinGW-Version'' where ''MinGW-Version'' is the Version of MinGW you are using. If you use a unmodified Version this is most probably 3.4.2, as I have the newer 4.2.0 I use this.&lt;br /&gt;
&lt;br /&gt;
[[Image:mingw_vista_01.png]][[Image:mingw_vista_02.png]]&lt;br /&gt;
&lt;br /&gt;
Let's try to compile again and see the progress.&lt;br /&gt;
&lt;br /&gt;
=== Compiler ===&lt;br /&gt;
&lt;br /&gt;
Hm still doesn't work, but the error changed:&lt;br /&gt;
&lt;br /&gt;
 -------------- Build: Debug in test ---------------&amp;lt;br /&amp;gt;&lt;br /&gt;
 Compiling: main.cpp&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\Users\Christoph\Projects\test\main.cpp:1:20: error: iostream: No such file or directory&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\Users\Christoph\Projects\test\main.cpp: In function 'int main()':&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\Users\Christoph\Projects\test\main.cpp:7: error: 'cout' was not declared in this scope&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\Users\Christoph\Projects\test\main.cpp:7: error: 'endl' was not declared in this scope&amp;lt;br /&amp;gt;&lt;br /&gt;
 Process terminated with status 1 (0 minutes, 1 seconds)&amp;lt;br /&amp;gt;&lt;br /&gt;
 3 errors, 0 warnings&lt;br /&gt;
&lt;br /&gt;
So MinGW is not able to find &amp;lt;iostream&amp;gt;. Let's tell him where to search:&lt;br /&gt;
&lt;br /&gt;
Still in the Compiler and Debugger dialogue go to &amp;quot;Search directories&amp;quot; -&amp;gt; &amp;quot;Compiler&amp;quot; and add:&lt;br /&gt;
&lt;br /&gt;
 C:\MinGW\include\&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\MinGW\include\c++\''MinGW-Version''&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\MinGW\include\c++\''MinGW-Version''\backward&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\MinGW\include\c++\''MinGW-Version''\mingw32&amp;lt;br /&amp;gt;&lt;br /&gt;
 C:\MinGW\lib\gcc\mingw32\''MinGW-Version''\include&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are not necessarily all of them needed, but these are the directories MinGW searches in normally.&lt;br /&gt;
&lt;br /&gt;
Try again to compile. The compiler should now execute nurmally, but there is a Linker error left:&lt;br /&gt;
&lt;br /&gt;
=== Linker ===&lt;br /&gt;
&lt;br /&gt;
 Linking console executable: bin\Debug\test.exe&amp;lt;br /&amp;gt;&lt;br /&gt;
 ld: cannot find -lgcc&amp;lt;br /&amp;gt;&lt;br /&gt;
 Process terminated with status 1 (0 minutes, 1 seconds)&amp;lt;br /&amp;gt;&lt;br /&gt;
 1 errors, 0 warnings&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So we apparently need to tell MinGW where to search for it's librarys. This is again done by adding some &amp;quot;Search directories&amp;quot;, but now we use the section &amp;quot;Linker&amp;quot;&lt;br /&gt;
&lt;br /&gt;
: C:\MinGW\lib\gcc\mingw32\''MinGW-Version''&lt;br /&gt;
&lt;br /&gt;
Try to compile, it should work.&lt;br /&gt;
&lt;br /&gt;
[[Image:mingw_vista_03.png]][[Image:mingw_vista_04.png]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting ===&lt;br /&gt;
&lt;br /&gt;
If this does not work out for you there is some advice to figure it out on your own:&lt;br /&gt;
&lt;br /&gt;
* If there is a file not found by MinGW use your search function to look for it, and add it where it belongs&lt;br /&gt;
** If it's an executeable (.exe) add it to the &amp;quot;additional paths&amp;quot; under &amp;quot;toolchain executeables&amp;quot;&lt;br /&gt;
** If it's a header (.h, .hpp or without extension) add it to &amp;quot;compiler&amp;quot; under &amp;quot;search directories&amp;quot;&lt;br /&gt;
** If it's a library (.o, .a) add it to &amp;quot;linker&amp;quot; under &amp;quot;search directories&amp;quot;&lt;br /&gt;
* Compile with the -v flag. You can do this by simply adding -v to &amp;quot;Build options&amp;quot; -&amp;gt; &amp;quot;Compiler&amp;quot; -&amp;gt; &amp;quot;Other options&amp;quot;&lt;br /&gt;
* Try entering the complete path to each program (for example, changing &amp;quot;mingw32-g++.exe&amp;quot; to &amp;quot;D:\toolkits\MinGW513\bin\mingw32-g++.exe&amp;quot;).  This may allow projects to be compiled, regardless of which partition and folder MinGW is installed to.  See [/index.php/topic,6422.0.html this forum thread] for more details.&lt;br /&gt;
--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
== '''An Easy Fix''' ==&lt;br /&gt;
&lt;br /&gt;
I have been using this fix that was made available in the Mingw-Users list, by a kind a person. It works fine without having to do any abnormal modifications to your CodeBlocks setups.&lt;br /&gt;
&lt;br /&gt;
----------------------------------&lt;br /&gt;
If it helps anyone else, I took the three patched drivers that Danny&lt;br /&gt;
posted (gcc, g++, collect2) and copied them to their various aliases&lt;br /&gt;
(e.g. c++, mingw-g++, etc) and put them in the appropriate directory&lt;br /&gt;
structure, and made it a tarball:&lt;br /&gt;
&lt;br /&gt;
http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz&lt;br /&gt;
&lt;br /&gt;
$ tar ztvf gcc-vista-3.4.5-20060117-1.tar.gz&lt;br /&gt;
-rwxr-xr-x brian/None 86016 2007-05-18 18:41 bin/c++.exe&lt;br /&gt;
-rwxr-xr-x brian/None 86016 2007-05-18 18:41 bin/g++.exe&lt;br /&gt;
-rwxr-xr-x brian/None 83456 2007-05-18 18:40 bin/gcc.exe&lt;br /&gt;
-rwxr-xr-x brian/None 86016 2007-05-18 18:41 bin/mingw32-c++.exe&lt;br /&gt;
-rwxr-xr-x brian/None 86016 2007-05-18 18:41 bin/mingw32-g++.exe&lt;br /&gt;
-rwxr-xr-x brian/None 83456 2007-05-18 18:40 bin/mingw32-gcc-3.4.5&lt;br /&gt;
-rwxr-xr-x brian/None 83456 2007-05-18 18:40 bin/mingw32-gcc.exe&lt;br /&gt;
-rwx------ brian/None 85504 2007-05-18 18:41&lt;br /&gt;
libexec/gcc/mingw32/3.4.5/collect2.exe&lt;br /&gt;
&lt;br /&gt;
If you unpack this in your MinGW root folder (e.g. /mingw) just like all&lt;br /&gt;
the other gcc-foo tarballs it should install the files in all the right&lt;br /&gt;
places. I tested this on a Vista copy running VMware and it worked fine&lt;br /&gt;
for compiling and linking C and C++.&lt;br /&gt;
&lt;br /&gt;
(That's for 3.4.5 only.)&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=MinGW_installation&amp;diff=4875</id>
		<title>MinGW installation</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=MinGW_installation&amp;diff=4875"/>
		<updated>2007-08-23T14:49:55Z</updated>

		<summary type="html">&lt;p&gt;Seronis: /* UnxUtils */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:User Documentation]]&lt;br /&gt;
==Using the MinGW installer==&lt;br /&gt;
Note: At the present time, it is still preferrable to download the packages by hand, as the installers are not production quality (unless you really feel unsure unpacking a couple of archives).&lt;br /&gt;
&lt;br /&gt;
Also, the installer reportedly does not work on Windows Vista, follow the [[MinGW_installation#GCC_3.4.5_manual_install | manual installation instructions]].&amp;lt;br /&amp;gt;&lt;br /&gt;
''(In general, MinGW is not confirmed to work for any Windows Vista betas or RCs)''&lt;br /&gt;
&lt;br /&gt;
'''MinGW has been confirmed working in Windows Vista Business!''' Thanks to [http://aarongiles.com/?p=199 Aaron Giles' Solving the Windows Vista Build Issues] for the solution.&lt;br /&gt;
In summary, the MinGW folder must be &amp;quot;a directory immediately off the root of your hard disk for some reason. So c:\mingw works fine, but c:\tools\mingw won’t.&amp;quot; (You can use mklink to symlink the folder, which also works). Secondly, set the GCC_EXEC_PREFIX environment variable to the MinGW root folder. Finally, add %GCC_EXEC_PREFIX%\libexec\gcc\mingw32\3.4.5 and %GCC_EXEC_PREFIX%\lib\bin to the PATH environment variable.&lt;br /&gt;
&lt;br /&gt;
'''A HowTo exists [[Installing_MinGW_with_Vista | here]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MinGW Installer 5.02 allows to choose the SF mirror while 5.03 does not (automatically picks one randomly).&lt;br /&gt;
&lt;br /&gt;
MinGW Installer 5.0.x are broken because of changes done by sf.net; please use the MinGW Installer 5.1.x&lt;br /&gt;
&lt;br /&gt;
Installers allows to downloads/installs &amp;quot;previous&amp;quot;, &amp;quot;current&amp;quot; and &amp;quot;candidate&amp;quot; mingw packages.&lt;br /&gt;
&lt;br /&gt;
*[http://prdownloads.sourceforge.net/mingw/MinGW-5.0.2.exe MinGW Installer 5.0.2]&lt;br /&gt;
*[http://prdownloads.sourceforge.net/mingw/MinGW-5.0.3.exe MinGW Installer 5.0.3]&lt;br /&gt;
*[http://prdownloads.sourceforge.net/mingw/MinGW-5.1.3.exe MinGW Installer 5.1.3]&lt;br /&gt;
&lt;br /&gt;
'''Note that the MinGW version number is not related to the actual compiler version.'''&lt;br /&gt;
&lt;br /&gt;
Please do note that the installer applications require an internet connection and will download the actual MinGW packages at the time of installation.&lt;br /&gt;
&lt;br /&gt;
The required MinGW Components are &amp;quot;MinGW Base Tools&amp;quot;, &amp;quot;g++ compiler&amp;quot; and &amp;quot;MinGW make&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==GCC 3.4.5 manual install==&lt;br /&gt;
This is the &amp;quot;candidate&amp;quot; release of MinGW, so it is not considered &amp;quot;stable&amp;quot; officially.&amp;lt;br /&amp;gt;Personally, I have not had any kind of problem with this release.&lt;br /&gt;
&lt;br /&gt;
To do a manual install, simply download the desired files and extract them all into the same directory. If you have WinZip, PowerArchiver, or any other similar program, this is as easy as selecting all the archives simultaneously and choosing &amp;quot;unpack here&amp;quot; from the context menu.&lt;br /&gt;
&lt;br /&gt;
For clarity, I recommend to put MinGW into C:\MinGW, but almost any other locations should do equally well. Avoid pathnames with spaces or exotic characters, as this may confuse some commandline tools (most notably &amp;lt;tt&amp;gt;gdb&amp;lt;/tt&amp;gt;).&lt;br /&gt;
===Base system with C++===&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-core-3.4.5-20060117-1.tar.gz http://prdownloads.sf.net/mingw/gcc-core-3.4.5-20060117-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g%2B%2B-3.4.5-20060117-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g++-3.4.5-20060117-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz http://prdownloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw32-make-3.81-1.tar.gz http://prdownloads.sf.net/mingw/mingw32-make-3.81-1.tar.gz]&lt;br /&gt;
&lt;br /&gt;
===Optionally:===&lt;br /&gt;
====Fortran77 compiler====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g77-3.4.5-20060117-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g77-3.4.5-20060117-1.tar.gz]&lt;br /&gt;
====gdb debugger====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gdb-6.3-2.exe http://prdownloads.sf.net/mingw/gdb-6.3-2.exe]&lt;br /&gt;
====Other developer tools====&lt;br /&gt;
=====UnxUtils=====&lt;br /&gt;
Ports of the most often used Unix utilities. Note that some tools in UnxUtils are quite a bit outdated, so make sure you &amp;lt;u&amp;gt;do not&amp;lt;/u&amp;gt; overwrite already existing MinGW files with their UnxUtils counterparts.&lt;br /&gt;
*[http://prdownloads.sf.net/unxutils/UnxUtils.zip UnxUtils]&lt;br /&gt;
*[http://prdownloads.sf.net/unxutils/UnxUpdates.zip UnxUtils-Latest-Updates]&lt;br /&gt;
&lt;br /&gt;
=====GnuWin32=====&lt;br /&gt;
''More recent'' versions of commonly used Unix utilities. Also: utilities not found in UnxUtils at all.&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/coreutils-5.3.0-bin.zip coreutils-5.3.0]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/zip-2.3-3-bin.zip zip-2.3.3]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/tar-1.13-1-bin.zip tar-1.13-1]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/gzip-1.3.5-3-bin.zip gzip-1.3.5]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/bzip2-1.0.3-1-bin.zip bzip2-1.0.0-1]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/autoconf-2.59-bin.zip autoconf-2.59]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/automake-1.9.4-bin.zip automake-1.9.4]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/bison-2.1-bin.zip bison-2.1 (includes m4)]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/flex-2.5.4a-1-bin.zip flex-2.5.4a]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/gperf-3.0.1-bin.zip gperf-3.0.1]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/diffutils-2.8.7-1-bin.zip diffutils-2.8.7]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/patch-2.5.9-6-bin.zip patch-2.5.9-6] &amp;lt;br&amp;gt; Note: The version 2.5.9 of patch from GnuWin32 seems to have a problem with unified diffs&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/grep-2.5.1a-bin.zip grep-2.5.1]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/sed-4.1.4-bin.zip sed-4.1.4]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/hextools-1.0-bin.zip hextools-1.0]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/findutils-4.2.20-2-bin.zip findutils-4.2.20]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/less-394-bin.zip less 3.94]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/which-2.16-4.exe which 2.16-4]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/wget-1.9.1-mingwPORT.tar.bz2 wget-1.9.1]&lt;br /&gt;
*[http://www.gimp.org/~tml/gimp/win32/gettext-0.14.5.zip gettext-0.14.5]&lt;br /&gt;
*[http://www.gimp.org/~tml/gimp/win32/gettext-dev-0.14.5.zip gettext-dev-0.14.5]&lt;br /&gt;
&lt;br /&gt;
Dependencies:&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/pcre-6.4-1-bin.zip pcre-6.4.1 (needed by grep and less)]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/libintl-0.14.4-bin.zip libintl-0.14.4 (needed by most tools)]&lt;br /&gt;
*[http://prdownloads.sf.net/gnuwin32/libiconv-1.9.2-1-bin.zip libiconv-1.9.2-1 (needed by most tools)]&lt;br /&gt;
&lt;br /&gt;
==Resulting Folder Layout==&lt;br /&gt;
[[Image:Lay.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GCC 3.4.4 manual install==&lt;br /&gt;
Some people have reported various problems with gcc version 3.4.4, so it may be worth a consideration to use the either the 3.4.5 or 3.4.2 releases until a build from the 4.x branch is available.&amp;lt;br /&amp;gt;Personally, I have not had any kind of problem with either 3.4.4 or 3.4.5.&lt;br /&gt;
===Base system with C++===&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-core-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-core-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g%2B%2B-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g++-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz http://prdownloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz]&lt;br /&gt;
&lt;br /&gt;
===Optionally:===&lt;br /&gt;
====gdb debugger====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gdb-6.3-2.exe http://prdownloads.sf.net/mingw/gdb-6.3-2.exe]&lt;br /&gt;
====Objective-C====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-objc-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-objc-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
====Native Java (experimental)====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-java-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-java-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
====Fortran-77====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g77-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g77-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
====Ada====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-ada-3.4.4-20050522-1.tar.gz http://prdownloads.sf.net/mingw/gcc-ada-3.4.4-20050522-1.tar.gz]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GCC 3.4.2 manual install==&lt;br /&gt;
Installing MinGW can be quite intimidating the first time because it is not obvious what you have to do. Luckily, it is actually pretty simple.&amp;lt;br /&amp;gt;&lt;br /&gt;
To do a manual install, simply download the required files and extract them all into the same directory. For simplicity, I recommend &amp;lt;tt&amp;gt;C:\MinGW&amp;lt;/tt&amp;gt;.&lt;br /&gt;
===Base system with C++===&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g%2B%2B-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz http://prdownloads.sf.net/mingw/mingw-utils-0.3.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/binutils-2.16.91-20050827-1.tar.gz http://prdownloads.sf.net/mingw/binutils-2.16.91-20050827-1.tar.gz]&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.tar.gz]&lt;br /&gt;
&lt;br /&gt;
===Optionally:===&lt;br /&gt;
====gdb debugger====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gdb-6.3-2.exe http://prdownloads.sf.net/mingw/gdb-6.3-2.exe]&lt;br /&gt;
====Objective-C====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-objc-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-objc-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
====Native Java (experimental)====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-java-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-java-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
====Fortran77 compiler====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-g77-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-g77-3.4.2-20040916-1.tar.gz]&lt;br /&gt;
&lt;br /&gt;
====Ada====&lt;br /&gt;
*[http://prdownloads.sf.net/mingw/gcc-ada-3.4.2-20040916-1.tar.gz http://prdownloads.sf.net/mingw/gcc-ada-3.4.2-20040916-1.tar.gz]&lt;/div&gt;</summary>
		<author><name>Seronis</name></author>
	</entry>
</feed>