Project

General

Profile

Actions

Bug #6578

closed

Wt failed due to error C2039 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:
08/31/2018
Due date:
% Done:

0%

Estimated time:

Description

Hello,

We build Wt with VS2017 on Windows. But it failed with error C2039: 'ssl': is not a member of 'boost::asio',in the Client.c 479 lines. This issue is caused by master revision 013a271. 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:

The whole log file please see attachment.

7>D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2039: 'ssl': is not a member of 'boost::asio' [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2039: && err != asio::ssl::error::stream_truncated [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2039: ^ [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.h(26): message : see declaration of 'boost::asio' [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.h(26): message : namespace asio { [D:\Wt\build_x86\src\wt.vcxproj]

7>D:\Wt\src\src\Wt\Http\Client.C (478,25): error C3083: 'ssl': the symbol to the left of a '::' must be a type [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,25): error C3083: && err != asio::ssl::error::stream_truncated [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,25): error C3083: ^ [D:\Wt\build_x86\src\wt.vcxproj]

7>D:\Wt\src\src\Wt\Http\Client.C (478,37): error C2039: 'stream_truncated': is not a member of 'boost::asio::error' [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,37): error C2039: && err != asio::ssl::error::stream_truncated [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,37): error C2039: ^ [D:\Wt\build_x86\src\wt.vcxproj]

C:\boost_1_67_0\x86\boost\asio\impl\error.ipp(26): message : see declaration of 'boost::asio::error' [D:\Wt\build_x86\src\wt.vcxproj]

C:\boost_1_67_0\x86\boost\asio\impl\error.ipp(26): message : namespace error { [D:\Wt\build_x86\src\wt.vcxproj]

7>D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2065: 'stream_truncated': undeclared identifier [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2065: && err != asio::ssl::error::stream_truncated [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (478,1): error C2065: ^ [D:\Wt\build_x86\src\wt.vcxproj]

7>D:\Wt\src\src\Wt\Http\Client.C (483,1): error C2039: 'ssl': is not a member of 'boost::asio' [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (483,1): error C2039: && err boost::asio::ssl::error::stream_truncated) { [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.C(483,1): error C2039: ^ [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.h(26): message : see declaration of \'boost::asio\' [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.h(26): message : namespace asio { [D:\Wt\build_x86\src\wt.vcxproj]
7>D:\Wt\src\src\Wt\Http\Client.C(483,32): error C3083: \'ssl\': the symbol to the left of a \'::\' must be a type [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.C(483,32): error C3083: && err boost::asio::ssl::error::stream_truncated) { [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (483,32): error C3083: ^ [D:\Wt\build_x86\src\wt.vcxproj]

7>D:\Wt\src\src\Wt\Http\Client.C (483,44): error C2039: 'stream_truncated': is not a member of 'boost::asio::error' [D:\Wt\build_x86\src\wt.vcxproj]

D:\Wt\src\src\Wt\Http\Client.C (483,44): error C2039: && err boost::asio::ssl::error::stream_truncated) { [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.C(483,44): error C2039: ^ [D:\Wt\build_x86\src\wt.vcxproj]
C:\boost_1_67_0\x86\boost\asio\impl\error.ipp(26): message : see declaration of \'boost::asio::error\' [D:\Wt\build_x86\src\wt.vcxproj]
C:\boost_1_67_0\x86\boost\asio\impl\error.ipp(26): message : namespace error { [D:\Wt\build_x86\src\wt.vcxproj]
7>D:\Wt\src\src\Wt\Http\Client.C(483,1): error C2065: \'stream_truncated\': undeclared identifier [D:\Wt\build_x86\src\wt.vcxproj]
D:\Wt\src\src\Wt\Http\Client.C(483,1): error C2065: && err boost::asio::ssl::error::stream_truncated)


Files

log_x86_build.log (193 KB) log_x86_build.log Lin Gao, 08/31/2018 08:38 AM
Actions #1

Updated by Wim Dumon over 5 years ago

  • Assignee set to Korneel Dumon
Actions #2

Updated by Korneel Dumon over 5 years ago

  • Status changed from New to Implemented @Emweb
Actions #3

Updated by Roel Standaert over 5 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Lin Gao over 5 years ago

Wt passed on reversion ea8c783 when build with MSVC, This issues can close.

Actions #5

Updated by Lin Gao over 5 years ago

Lin Gao wrote:

Wt passed on reversion ea8c783 when build with MSVC, This issue can close.

Actions #6

Updated by Roel Standaert over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF