Bug #6355
closedWt failed due to error C2026 when build with MSVC
0%
Description
Hello,
We build Wt with VS2017 Update 5 on Windows. But it failed with error C2026: string too big, trailing characters truncated. This issue is caused by master revision 3457bb5. 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
- 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:
The whole log file please see attachment.
"D:\Wt\build_x86\ALL_BUILD.vcxproj" (Rebuild target) (1) ->
"D:\Wt\build_x86\examples\dialog\dialog.wt.vcxproj" (default target) (3:2) ->
"D:\Wt\build_x86\src\wt.vcxproj" (default target) (8:54) ->
(ClCompile target) ->
D:\Wt\src\src\js/WCartesianChart.min.js(36): error C2026: string too big, trailing characters truncated (compiling source file D:\Wt\src\src\Wt\Chart\WCartesianChart.C) [D:\Wt\build_x86\src\wt.vcxproj]
Files
Updated by Roel Standaert over 6 years ago
I am aware that the version of Wt on GitHub is currently broken on Windows.
Updated by Quella Zhang over 6 years ago
Thanks, @Roel Janssen Standaert. This issue still can be reproduced with latest master revision 10c77a8.
Updated by Quella Zhang over 6 years ago
We are no longer hit this issue in the latest master revision a99db99. Thanks!