-
Notifications
You must be signed in to change notification settings - Fork 3
Compile Boost with VS 2012
Noxalus edited this page Oct 13, 2012
·
3 revisions
- Change directory to boost_1_51_0\tools\build\v2
- execute bootstrap.bat
- copy b2.exe back to boost_1_51_0 dir
- change directory to boost_1_51_0
- execute b2
For boost v1.49, we have to use the VS command prompt !
If you look at boost/detail/utf8_codecvt_facet.hpp, you'll see:
#if !defined(__MSL_CPP__) && !defined(__LIBCOMO__)
#define BOOST_CODECVT_DO_LENGTH_CONST const
#else
#define BOOST_CODECVT_DO_LENGTH_CONST
#endif
If you change (in your copy) to replace all five of those lines with:
#define BOOST_CODECVT_DO_LENGTH_CONST
then it should work with VS2012 (but not with VS2011).
Please file a bug so that will remember to fix it (permanently) for the next boost release.