This is the simplest way for an amateur like me who is studying C++ on their own:
First Unzip the boost library to any directory of your choice. I recommend c:\directory
.
- Open your visual C++.
- Create a new project.
- Right click on the project.
- Click on property.
- Click on C/C++.
- Click on general.
- Select additional include library.
- Include the library destination. e.g.
c:\boost_1_57_0
. - Click on pre-compiler header.
- Click on create/use pre-compiled header.
- Select not using pre-compiled header.
Then go over to the link library were you experienced your problems.
- Go to were the extracted file was
c:\boost_1_57_0
. - Click on
booststrap.bat
(don’t bother to type on the command window just wait and don’t close the window that is the place I had my problem that took me two weeks to solve. After a while thebooststrap
will run and produce the same file, but now with two different names:b2
, andbjam
. - Click on
b2
and wait it to run. - Click on
bjam
and wait it to run. Then a folder will be produce calledstage
. - Right click on the project.
- Click on property.
- Click on linker.
- Click on general.
- Click on include additional library directory.
- Select the part of the library e.g.
c:\boost_1_57_0\stage\lib
.
And you are good to go!