<?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=Thistleknot</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=Thistleknot"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Thistleknot"/>
	<updated>2026-05-26T11:02:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7371</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7371"/>
		<updated>2012-10-12T09:35:38Z</updated>

		<summary type="html">&lt;p&gt;Thistleknot: /* 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.47.0'''. [http://www.boost.org/users/news/version_1_47_0 Click here to browse the Boost 1.47.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.18'''. [http://sourceforge.net/projects/boost/files/boost-jam/3.1.18/boost-jam-3.1.18-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.18-1-ntx86.zip; 121.4 KB).&lt;br /&gt;
&lt;br /&gt;
Note: Downloading precompiled bjam seems to be an outdated method.&lt;br /&gt;
To build bjam from source, use bootstrap.bat from Boost base directory.&lt;br /&gt;
Bootstrap.bat assumes you are using msvc compiler, to use Gcc, type &amp;quot;bootstrap.bat gcc&amp;quot;&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_47_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.18-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/download 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.18-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 /D &amp;lt;path&amp;gt;\boost_1_47_0&lt;br /&gt;
''Note: the ''&amp;lt;code&amp;gt;/D&amp;lt;/code&amp;gt;'' flag after ''&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt;'' may be omitted from the command; it simply allows command prompt to change drives if necessary.''&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 compiler variables|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;
&amp;lt;!-- * In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_47&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. Not valid anymore. --&amp;gt;&lt;br /&gt;
* In the &amp;quot;lib&amp;quot; field, browse for the &amp;quot;stage\lib&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\stage\lib&amp;quot; tacked on. (This is the folder that contains either multiple &amp;lt;tt&amp;gt;lib*.a&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;*.lib&amp;lt;/tt&amp;gt; files.)&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;&amp;lt;tt&amp;gt;$(#boost.include)&amp;lt;/tt&amp;gt;&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;&amp;lt;tt&amp;gt;$(#boost.lib)&amp;lt;/tt&amp;gt;&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;
* &amp;lt;tt&amp;gt;#include &amp;lt;boost/*.hpp&amp;gt;&amp;lt;/tt&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;&amp;lt;tt&amp;gt;boost_*-mgwXX-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to your Link libraries&lt;br /&gt;
For example, use &amp;quot;&amp;lt;tt&amp;gt;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;lt;/tt&amp;gt;&amp;quot;, &amp;quot;&amp;lt;tt&amp;gt;boost_filesystem-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;boost_system-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
settings compiler &amp;amp; debugger linker settings add&lt;br /&gt;
&lt;br /&gt;
examples: (order does matter)&lt;br /&gt;
F:\CodeBlocks\lib\libboost_regex-mgw44-1_51.a&lt;br /&gt;
F:\CodeBlocks\lib\libboost_thread-mgw44-mt-1_51.a&lt;br /&gt;
F:\CodeBlocks\lib\libboost_chrono-mgw44-1_51.a&lt;br /&gt;
f:\codeblocks\lib\*.a&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. If it fails, [/index.php/topic,15164.0.html this post] may have some useful information.&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. Boost maintains a [http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#header-only-libraries list] of which libraries require pre-compilation. (An undefined reference error including &amp;lt;tt&amp;gt;WSA&amp;lt;/tt&amp;gt; requires the windows sockets library, &amp;lt;tt&amp;gt;ws2_32&amp;lt;/tt&amp;gt;.)&lt;/div&gt;</summary>
		<author><name>Thistleknot</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7370</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7370"/>
		<updated>2012-10-12T09:16:01Z</updated>

		<summary type="html">&lt;p&gt;Thistleknot: /* 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.47.0'''. [http://www.boost.org/users/news/version_1_47_0 Click here to browse the Boost 1.47.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.18'''. [http://sourceforge.net/projects/boost/files/boost-jam/3.1.18/boost-jam-3.1.18-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.18-1-ntx86.zip; 121.4 KB).&lt;br /&gt;
&lt;br /&gt;
Note: Downloading precompiled bjam seems to be an outdated method.&lt;br /&gt;
To build bjam from source, use bootstrap.bat from Boost base directory.&lt;br /&gt;
Bootstrap.bat assumes you are using msvc compiler, to use Gcc, type &amp;quot;bootstrap.bat gcc&amp;quot;&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_47_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.18-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/download 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.18-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 /D &amp;lt;path&amp;gt;\boost_1_47_0&lt;br /&gt;
''Note: the ''&amp;lt;code&amp;gt;/D&amp;lt;/code&amp;gt;'' flag after ''&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt;'' may be omitted from the command; it simply allows command prompt to change drives if necessary.''&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 compiler variables|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;
&amp;lt;!-- * In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_47&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. Not valid anymore. --&amp;gt;&lt;br /&gt;
* In the &amp;quot;lib&amp;quot; field, browse for the &amp;quot;stage\lib&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\stage\lib&amp;quot; tacked on. (This is the folder that contains either multiple &amp;lt;tt&amp;gt;lib*.a&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;*.lib&amp;lt;/tt&amp;gt; files.)&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;&amp;lt;tt&amp;gt;$(#boost.include)&amp;lt;/tt&amp;gt;&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;&amp;lt;tt&amp;gt;$(#boost.lib)&amp;lt;/tt&amp;gt;&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;
* &amp;lt;tt&amp;gt;#include &amp;lt;boost/*.hpp&amp;gt;&amp;lt;/tt&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;&amp;lt;tt&amp;gt;boost_*-mgwXX-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to your Link libraries&lt;br /&gt;
For example, use &amp;quot;&amp;lt;tt&amp;gt;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;lt;/tt&amp;gt;&amp;quot;, &amp;quot;&amp;lt;tt&amp;gt;boost_filesystem-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;boost_system-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to use boost.filesystem.&lt;br /&gt;
&lt;br /&gt;
settings compiler &amp;amp; debugger linker settings add&lt;br /&gt;
&lt;br /&gt;
example:&amp;quot; f:\codeblocks\lib\*.a&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. If it fails, [/index.php/topic,15164.0.html this post] may have some useful information.&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. Boost maintains a [http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#header-only-libraries list] of which libraries require pre-compilation. (An undefined reference error including &amp;lt;tt&amp;gt;WSA&amp;lt;/tt&amp;gt; requires the windows sockets library, &amp;lt;tt&amp;gt;ws2_32&amp;lt;/tt&amp;gt;.)&lt;/div&gt;</summary>
		<author><name>Thistleknot</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7369</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7369"/>
		<updated>2012-10-12T09:15:40Z</updated>

		<summary type="html">&lt;p&gt;Thistleknot: /* 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.47.0'''. [http://www.boost.org/users/news/version_1_47_0 Click here to browse the Boost 1.47.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.18'''. [http://sourceforge.net/projects/boost/files/boost-jam/3.1.18/boost-jam-3.1.18-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.18-1-ntx86.zip; 121.4 KB).&lt;br /&gt;
&lt;br /&gt;
Note: Downloading precompiled bjam seems to be an outdated method.&lt;br /&gt;
To build bjam from source, use bootstrap.bat from Boost base directory.&lt;br /&gt;
Bootstrap.bat assumes you are using msvc compiler, to use Gcc, type &amp;quot;bootstrap.bat gcc&amp;quot;&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_47_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.18-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/download 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.18-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 /D &amp;lt;path&amp;gt;\boost_1_47_0&lt;br /&gt;
''Note: the ''&amp;lt;code&amp;gt;/D&amp;lt;/code&amp;gt;'' flag after ''&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt;'' may be omitted from the command; it simply allows command prompt to change drives if necessary.''&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 compiler variables|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;
&amp;lt;!-- * In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_47&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. Not valid anymore. --&amp;gt;&lt;br /&gt;
* In the &amp;quot;lib&amp;quot; field, browse for the &amp;quot;stage\lib&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\stage\lib&amp;quot; tacked on. (This is the folder that contains either multiple &amp;lt;tt&amp;gt;lib*.a&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;*.lib&amp;lt;/tt&amp;gt; files.)&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;&amp;lt;tt&amp;gt;$(#boost.include)&amp;lt;/tt&amp;gt;&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;&amp;lt;tt&amp;gt;$(#boost.lib)&amp;lt;/tt&amp;gt;&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;
* &amp;lt;tt&amp;gt;#include &amp;lt;boost/*.hpp&amp;gt;&amp;lt;/tt&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;&amp;lt;tt&amp;gt;boost_*-mgwXX-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to your Link libraries&lt;br /&gt;
For example, use &amp;quot;&amp;lt;tt&amp;gt;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;lt;/tt&amp;gt;&amp;quot;, &amp;quot;&amp;lt;tt&amp;gt;boost_filesystem-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;boost_system-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&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. If it fails, [/index.php/topic,15164.0.html this post] may have some useful information.&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. Boost maintains a [http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#header-only-libraries list] of which libraries require pre-compilation. (An undefined reference error including &amp;lt;tt&amp;gt;WSA&amp;lt;/tt&amp;gt; requires the windows sockets library, &amp;lt;tt&amp;gt;ws2_32&amp;lt;/tt&amp;gt;.)&lt;/div&gt;</summary>
		<author><name>Thistleknot</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7368</id>
		<title>BoostWindowsQuickRef</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef&amp;diff=7368"/>
		<updated>2012-10-12T09:15:19Z</updated>

		<summary type="html">&lt;p&gt;Thistleknot: /* 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.47.0'''. [http://www.boost.org/users/news/version_1_47_0 Click here to browse the Boost 1.47.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.18'''. [http://sourceforge.net/projects/boost/files/boost-jam/3.1.18/boost-jam-3.1.18-1-ntx86.zip Click here to download Boost Jam for Windows] (boost-jam-3.1.18-1-ntx86.zip; 121.4 KB).&lt;br /&gt;
&lt;br /&gt;
Note: Downloading precompiled bjam seems to be an outdated method.&lt;br /&gt;
To build bjam from source, use bootstrap.bat from Boost base directory.&lt;br /&gt;
Bootstrap.bat assumes you are using msvc compiler, to use Gcc, type &amp;quot;bootstrap.bat gcc&amp;quot;&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_47_0&amp;quot; and &amp;quot;&amp;lt;path&amp;gt;\boost-jam-3.1.18-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/download 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.18-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 /D &amp;lt;path&amp;gt;\boost_1_47_0&lt;br /&gt;
''Note: the ''&amp;lt;code&amp;gt;/D&amp;lt;/code&amp;gt;'' flag after ''&amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt;'' may be omitted from the command; it simply allows command prompt to change drives if necessary.''&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 compiler variables|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;
&amp;lt;!-- * In the &amp;quot;include&amp;quot; field, browse for the &amp;quot;include\boost-1_47&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. Not valid anymore. --&amp;gt;&lt;br /&gt;
* In the &amp;quot;lib&amp;quot; field, browse for the &amp;quot;stage\lib&amp;quot; subfolder of your Boost installation -- it should be the path in the &amp;quot;base&amp;quot; field with &amp;quot;\stage\lib&amp;quot; tacked on. (This is the folder that contains either multiple &amp;lt;tt&amp;gt;lib*.a&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;*.lib&amp;lt;/tt&amp;gt; files.)&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;&amp;lt;tt&amp;gt;$(#boost.include)&amp;lt;/tt&amp;gt;&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;&amp;lt;tt&amp;gt;$(#boost.lib)&amp;lt;/tt&amp;gt;&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;
* &amp;lt;tt&amp;gt;#include &amp;lt;boost/*.hpp&amp;gt;&amp;lt;/tt&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;&amp;lt;tt&amp;gt;boost_*-mgwXX-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; to your Link libraries&lt;br /&gt;
For example, use &amp;quot;&amp;lt;tt&amp;gt;#include &amp;lt;boost/filesystem.hpp&amp;gt;&amp;lt;/tt&amp;gt;&amp;quot;, &amp;quot;&amp;lt;tt&amp;gt;boost_filesystem-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;boost_system-mgw45-mt-1_47&amp;lt;/tt&amp;gt;&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. If it fails, [/index.php/topic,15164.0.html this post] may have some useful information.&lt;br /&gt;
&lt;br /&gt;
settings compiler &amp;amp; debugger linker settings add&lt;br /&gt;
&lt;br /&gt;
example:&amp;quot; f:\codeblocks\lib\*.a&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. Boost maintains a [http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#header-only-libraries list] of which libraries require pre-compilation. (An undefined reference error including &amp;lt;tt&amp;gt;WSA&amp;lt;/tt&amp;gt; requires the windows sockets library, &amp;lt;tt&amp;gt;ws2_32&amp;lt;/tt&amp;gt;.)&lt;/div&gt;</summary>
		<author><name>Thistleknot</name></author>
	</entry>
</feed>