Project

General

Profile

Actions

Bug #6595

closed

Wt failed due to error C2338 when build with MSVC

Added by Lin Gao over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/10/2018
Due date:
% Done:

0%

Estimated time:

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:

  1. Open VS2017 x86 Native tools command tool
  2. git clone https://github.com/emweb/wt d:\Wt\src
  3. cd D:\Wt
  4. mkdir build_x86 && pushd build_x86
  5. 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\
  6. 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

log_x86_build.log (307 KB) log_x86_build.log Lin Gao, 09/10/2018 09:34 AM
Actions #1

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.

Actions #2

Updated by Roel Standaert over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF