Bug #6595
closedWt failed due to error C2338 when build with MSVC
0%
Description
Hello,
We build Wt with VS2017 on Windows. But it failed with error C2338: tuple index out of bounds [D:\Wt\build_x86\src\wt.vcxproj];error C2338:static_assert(_Always_false<integral_constant<size_t, _Index>>,[D:\Wt\build_x86\src\wt.vcxproj];error C2338:(compiling source file D:\Wt\src\src\Wt\Json\Parser.C) [D:\Wt\build_x86\src\wt.vcxproj]. This issue is caused by master revision 0b458aa. Could you please help take a look at this? Thanks!
Note:
Wt requires boost. You can get boost 32bits and 64bits from following address and Change the install path:
32bits: c:\boost_1_64_0\x86
64bits: c:\boost_1_64_0\x64
Boost: https://sourceforge.net/projects/boost/files/boost-binaries/1.64.0/
Repro steps:
- Open VS2017 x86 Native tools command tool
- git clone https://github.com/emweb/wt d:\Wt\src
- cd D:\Wt
- mkdir build_x86 && pushd build_x86
- cmake -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_VERSION=10.0.16299.0 -DBOOST_PREFIX=C:\boost_1_64_0\x86 -DBOOST_LIBRARYDIR=C:\boost_1_64_0\x86\lib32-msvc-14.1 ..\src\
- msbuild /m /p:Configuration=Release;Platform=Win32 ALL_BUILD.vcxproj /t:Rebuild
Error information:
4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\utility(542,1): error C2338: tuple index out of bounds [D:\Wt\build_x86\src\wt.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\utility(542,1): error C2338: static_assert(_Always_false<integral_constant<size_t, _Index>>, [D:\Wt\build_x86\src\wt.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\utility(542,1): error C2338: ^ (compiling source file D:\Wt\src\src\Wt\Json\Parser.C) [D:\Wt\build_x86\src\wt.vcxproj]
Files
Updated by Roel Standaert over 5 years ago
- Status changed from New to Resolved
Hm, too bad that didn't work with MSVC. I'm not entirely sure what the issue was, but I just ended up doing it the old fashioned way.
Updated by Roel Standaert over 5 years ago
- Status changed from Resolved to Closed