I\'m trying to build Boost 1.55 with Visual Studio 2013.
1) I tried to use boost-binaries (boost-binaries), but Visual Studio wrote about the error, when I tried to comp
Let's go step by step and first build boost build system.
"I include the file ('tlhelp32.h'). It is compiled without any errors."
So, that file is present on the disk. Environment variables are set differently for cl.exe which is run by bootstrap.bat. Include files are searched by cl.exe in the INCLUDE env variable. Find tlhelp32.h on the disk and in the Visual Studio Command Prompt add this path to the INCLUDE:
set INCLUDE=%INCLUDE%;<path to tlhelp32.h>
If some .lib will not be found look at LIBPATH env variable.
I suppose VS2013 vcvars*.bat files did not set the environment properly.
if you are using windows 8.1, open the vs2012 x86 Tool command prompt,type
echo %WindowsSdkDir%
if you see this below
C:\Program Files (x86)\Windows Kits\8.0\
that means vcvars32.bat set the wrong INCLUDE variable for you,which issue marked as bug in ms website so the solution is:
edit vcvars32.bat,replace
%WindowsSDKDir%\include\um;
to
C:\Program Files (x86)\Windows Kits\8.1\include\um;
another solutions is modify the VS2012 x86 Native Tools Command Prompt.link,copy and paste the vs2012 x86 Native Tools Command Prompt ,right click,modify the link,replace all
Microsoft Visual Studio 11.0
to
Microsoft Visual Studio 12.0
open the link,try to build the boost
The paths set up for the include variable point to Windows 8.0 instead of Windows 8.1.
The file you mention with Visual Studio 2013 and Windows 8.1 should be found in the following path:
C:\Program Files (x86)\Windows Kits\8.1\include\um
I modified the INCLUDE variable from:
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.0\include\um;C:\Program Files (x86)\Windows Kits\8.0\include\winrt
to:
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt
It seems that Visual Studio 2013 (in my case, it was Visual Studio 2013 Express with Update 4) doesn't include tlhelp32.h. I've just submitted a bug report about this problem. To resolve this problem, I installed the Windows SDK in addition to Visual studio (in my case, it was Windows 8.1 SDK).
Building boost library is really headache. So thats what i found and get ride of it that problem;
I had the same error and i followed the SourceForge. The link will take you to a folder of zipped lib and dll files for version of boost.You can download and unzip related library and when copied it to the related location everything gonna be alright ;)
Using 2010 or 2012 configuration in your project file will be better. As I know 2013 is not convenient for 1.55 yet.