beast icon indicating copy to clipboard operation
beast copied to clipboard

[help] Installing beast using git submodules

Open Nitwel opened this issue 3 years ago • 4 comments

Hi, I'm really new to c++ and trying to install and use beast by adding it to my project as a git submodule. My problem is that VisualStudio only finds boost::beast but not boost::beast::http from this example: https://github.com/boostorg/beast/blob/710cc53331f197f6f17e8c38454c09df68e43c03/example/websocket/server/sync/websocket_server_sync.cpp#L16-L29

I've included the hpp files like so:

grafik

where /libraries/beast is the beast submodule and same goes for asio and code.

The error VS gives me: grafik

What exactly am I doing wrong that VS does find boost::beast but not boost::beast::http?

Nitwel avatar Jun 14 '21 11:06 Nitwel

Boost (including beast) should be installed either the supplied b2 tool. The Cmake script is there for maintenance use at the moment. Cmake support for installing boost is in the pipeline but currently not part of the supported user experience. @pdimov

madmongo1 avatar Jun 14 '21 11:06 madmongo1

You haven't included <boost/beast/http.hpp>.

pdimov avatar Jun 14 '21 12:06 pdimov

Including <boost/beast/http.hpp> still gives an error.

Nitwel avatar Jun 14 '21 12:06 Nitwel

This issue has been open for a while with no activity, has it been resolved?

stale[bot] avatar Jan 09 '22 03:01 stale[bot]

@Nitwel we'd need the error to help you. Since it's been over a year, I assume you figured it out by now. If not please reopen the issue.

klemens-morgenstern avatar Sep 24 '22 05:09 klemens-morgenstern