How to build Boost 1.55 with Visual Studio 2013?

前端 未结 5 1291
情深已故
情深已故 2021-02-15 12:43

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

相关标签:
5条回答
  • 2021-02-15 12:50

    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.

    0 讨论(0)
  • 2021-02-15 12:58

    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

    0 讨论(0)
  • 2021-02-15 13:02

    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
    
    0 讨论(0)
  • 2021-02-15 13:06

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

    0 讨论(0)
  • 2021-02-15 13:09

    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.

    0 讨论(0)
提交回复
热议问题