How to build Boost 1.55 with Visual Studio 2013?

╄→гoц情女王★ 提交于 2019-12-03 12:42:28
Kyle

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

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.

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.

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).

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!