Opened 7 years ago
Last modified 7 years ago
#11487 new Bugs
Boost doesn't build with Visual C++ 2015
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | Building Boost |
Version: | Boost 1.58.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
Trying to build Boost with Visual C++ 2015 fails with an error message: can't find header file corecrt.h. It turns out that Visual C++ has changed the location of some header files in this release. The batch file vcvarsall.bat correctly sets the new path, but it looks like the Boost build program b2 makes its own guess at paths, and that guess was derived from earlier versions of Visual C++ and is no longer accurate?
Change History (4)
comment:1 by , 7 years ago
Component: | None → Building Boost |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
You can pass a include= parameter to b2, so something like b2 ... include="C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt" ... stage
comment:4 by , 7 years ago
I used the way described here:
- Got to user's temp folder (%TEMP%).
- Delete all b2_*.cmd files.
Same on me: address-model=32 makes errors while address-model=64 compiles fine.