Skip to content

Impossible to build on Windows with MSVC #1834

@symbolix

Description

@symbolix

I have been trying to build cpprest with websockets support from source, no success.

  1. The included vcpkg submodule is outdated, impossible to use.

  2. Rest of the code doesn't like boost 1.88. Throws all kind of linker and compile errors.

...
C:\Users\me\dev\cpprestsdk\Release\src\pplx\threadpool.cpp(87): error C2039: 'work': is not a member of 'boost::asio::io_context'
C:\vcpkg2\installed\x64-windows\include\boost/asio/io_context.hpp(192): note: see declaration of 'boost::asio::io_context'
C:\Users\me\dev\cpprestsdk\Release\src\pplx\threadpool.cpp(87): error C3646: 'm_work': unknown override specifier
C:\Users\me\dev\cpprestsdk\Release\src\pplx\threadpool.cpp(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\me\dev\cpprestsdk\Release\src\pplx\threadpool.cpp(40): error C2614: '`anonymous-namespace'::threadpool_impl': illegal member initialization: 'm_work' is not a base or member
...

Complete dead-end.

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