Skip to content

[BUG] Compilation error with latest version on Windows with VS 2022, Platform Toolset: VS 2022, C++ standard: C++ 20 #1654

@pjdixit

Description

@pjdixit

Describe the bug

While compiling latest master branch on Windows with VS 2022, Platform Toolset: VS 2022, C++ standard: C++ 20, olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp truggers compilation error

Which version/tag/hash of the HERE OLP SDK are you using?

V 1.24.0

What compiler are you using? What version of the compiler?

Visual Studio 2022
Platform Toolset: VS 2022
C++ standard: C++ 20

What are the CMake arguments?

Default

Steps to reproduce the issue

Configure the project with CMake and try to build with VS 2022, Platform Toolset: VS 2022, C++ standard: C++ 20

Expected behavior

No compilation errors

Can you provide any TRACE level logs?

Please strip sensitive data prior to upload!

Severity Code Description Project File Line Suppression State Details
Error (active) E0144 a value of type "const wchar_t *" cannot be used to initialize an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 429
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 431
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 433
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 435
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 437
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 439
Error (active) E0513 a value of type "const wchar_t *" cannot be assigned to an entity of type "LPWSTR" (aka "wchar_t *") olp-cpp-sdk-core C:\Dev\Projects\External\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 441
Error (active) E1776 function "std::operator<<(std::basic_ostream<char, _Traits> &, const wchar_t *) [with _Traits=std::char_traits]" (declared at line 972 of "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\include__msvc_ostream.hpp") cannot be referenced -- it is a deleted function olp-cpp-sdk-core C:\Dev\Projects\here-data-sdk-cpp\olp-cpp-sdk-core\src\http\winhttp\NetworkWinHttp.cpp 484

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions