Bug #6373
closedWt failed with error C2065 and C2228 when build with MSVC
0%
Description
Hello,
We build Wt with VS2017 Update 5 on Windows. But it failed with error C2065 and C2228. This issue is caused by master revision 942cd3d. 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:
"D:\Wt\build_x86\ALL_BUILD.vcxproj" (Rebuild target) (1) ->
"D:\Wt\build_x86\test\test.wt.vcxproj" (default target) (49:2) ->
"D:\Wt\build_x86\src\wt.vcxproj" (default target) (30:54) ->
(ClCompile target) ->
D:\Wt\src\src\Wt\Chart\WCartesianChart.C (2539): error C2065: 'XAxis': undeclared identifier [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Chart\WCartesianChart.C (2539): error C2228: left of '.minZoom' must have class/struct/union [D:\Wt\build_x86\src\wt.vcxproj]
Files
Updated by Roel Standaert over 6 years ago
- Status changed from New to Closed
Those issues should be fixed already. I just pushed another fix for the widgetgallery example, so everything should build now.