<?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=Dgg32</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=Dgg32"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Dgg32"/>
	<updated>2026-05-19T08:58:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista&amp;diff=5722</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=5722"/>
		<updated>2008-10-31T13:06:46Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: /* Compiler */&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 normally, 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>Dgg32</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5721</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5721"/>
		<updated>2008-10-31T12:01:22Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: /* Test boost installation */&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.36.0'''. [http://sourceforge.net/project/showfiles.php?group_id=7586&amp;amp;package_id=8041&amp;amp;release_id=619445 Click here to browse the Boost 1.36.0 downloadable files]. 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.16'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.16-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.16-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack the sources to a path without spaces.''' You should choose a volume with at least XXX MB 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_36_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.16-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.16-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_36_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_36&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_36&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_36&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_36.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_36.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>Dgg32</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5720</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5720"/>
		<updated>2008-10-31T12:00:48Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: /* Test boost installation */&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.36.0'''. [http://sourceforge.net/project/showfiles.php?group_id=7586&amp;amp;package_id=8041&amp;amp;release_id=619445 Click here to browse the Boost 1.36.0 downloadable files]. 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.16'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.16-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.16-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack the sources to a path without spaces.''' You should choose a volume with at least XXX MB 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_36_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.16-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.16-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_36_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_36&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_36&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_36&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_36.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_36.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation is finished, 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>Dgg32</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5719</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5719"/>
		<updated>2008-10-31T12:00:28Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: /* Test boost installation */&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.36.0'''. [http://sourceforge.net/project/showfiles.php?group_id=7586&amp;amp;package_id=8041&amp;amp;release_id=619445 Click here to browse the Boost 1.36.0 downloadable files]. 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.16'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.16-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.16-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack the sources to a path without spaces.''' You should choose a volume with at least XXX MB 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_36_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.16-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.16-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_36_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_36&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_36&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_36&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_36.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_36.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation is finished, you can use these[http://beans.seartipy.com/2006/03/16/how-to-test-c-boost-installation/ 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>Dgg32</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5718</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5718"/>
		<updated>2008-10-31T11:59:49Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: &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.36.0'''. [http://sourceforge.net/project/showfiles.php?group_id=7586&amp;amp;package_id=8041&amp;amp;release_id=619445 Click here to browse the Boost 1.36.0 downloadable files]. 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.16'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.16-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.16-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack the sources to a path without spaces.''' You should choose a volume with at least XXX MB 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_36_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.16-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.16-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_36_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_36&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_36&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_36&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_36.lib&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_36.lib&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
== Test boost installation==&lt;br /&gt;
After the installation is finished, 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>Dgg32</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5717</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=5717"/>
		<updated>2008-10-31T11:52:52Z</updated>

		<summary type="html">&lt;p&gt;Dgg32: /* 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.36.0'''. [http://sourceforge.net/project/showfiles.php?group_id=7586&amp;amp;package_id=8041&amp;amp;release_id=619445 Click here to browse the Boost 1.36.0 downloadable files]. 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.16'''. [http://downloads.sourceforge.net/boost/boost-jam-3.1.16-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.16-1-ntx86.zip; 115 KB).&lt;br /&gt;
&lt;br /&gt;
'''It is highly recommended that you unpack the sources to a path without spaces.''' You should choose a volume with at least XXX MB 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_36_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.16-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.16-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_36_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_36&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_36&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_36&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_36&amp;quot; and &amp;quot;boost_system-mgw34-mt-1_36&amp;quot; to use boost.filesystem.&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>Dgg32</name></author>
	</entry>
</feed>