|#include 'c:\Program Files (x86)\boost\boost_1_47\lib\|
You tryed to include *.lib file ? that of course can't work...
I would advise you to learn about differences between libraries, headers and dll's.
OK, I'll try to give you detailed instructions to setup your boost libraries, first follow these steps:
go to official boost web page and download current release:
(the file to download is called boost_1_49_0.zip)
Extract the downloaded file into C:\ root directory
when you do that you will have a directory whose path is:
Now all you have to do are 2 things:
- build boost libraries for your enviroinment.
- set propertiy sheet for your enviroinment projects.
To build you libraries do this:
goto Start > All programs > Visual studio 2010 > Visual studio tools
here select visual studio command promt. (64 bit one if you have x64 machine)
when cmd opens
type cd C:\boost_1_49_0
to see all available command line options goto this site and study:
to see official instructions goto this site and study
Please study from these sites before you say "it doesn't work" becuase I know it works OK?
here are simple options that I used for my build
for 64 bit system
type b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage link=static,shared threading=single,multi
for 32 bit sysem
type b2 --toolset=msvc-10.0 --build-type=complete stage link=static,shared threading=single,multi
Now at this point take a coffie break, this process will take houres to complete, do not disrupt the command promt until finished!!
Second step is to setup your property pages.
edit: here is edited version that works with new boost libraries
1. open up visual studio and create new project.
2. click on view > property manager
3 right click on your project name and click add new project prperty sheet
4. in add new item dialog type Boost.props
into name field, into location type C:\
and click OK
5. double click on newly created project property sheet to open it
6. goto user macros and click on add macro
7. into name field type BOOST
, and into value field type c:\boost_1_49_0
check the box "set this macro in enviroinment variable"
and click OK
8. VC++ directories > include directories
and append $(BOOST)
respecting the semicolon!
9. Linker > general > aditional library directories
and append $(BOOST)\stage\lib
10. Linker > general > link library dependencies
set to YES
11. Finaly click apply and close project property sheet
12. In project proerty manager right click on your new sheet and click save
Have a nice build :D