qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

Compiler error in Ubuntu #10

Open wangzeke opened 4 years ago

wangzeke commented 4 years ago

Hi, I try to use rest_rpc in Ubuntu. When I try to run the example provided using the following comments:

~/nethz/study/RPC/rest_rpc/examples/app_client$ gcc main.cpp -I../../include/ ../../third/msgpack/include -pthread -std=c++11 In file included from ../../include/rpc_client.hpp:6:0, from client.hpp:2, from main.cpp:2: ../../include/use_asio.hpp:43:41: fatal error: boost/utility/string_view.hpp: No such file or directory compilation terminated.

Looks like there is no boost/utility/ at all. Any idea to solve this issue? Thanks.

qicosmos commented 4 years ago

You can use "string_view.hpp" https://github.com/qicosmos/rest_rpc/blob/master/include/string_view.hpp

from the current project directly.

qicosmos commented 4 years ago

Maybe your boost version is less than 1.69, you'd better use a boost version contains string_view.

wangzeke commented 4 years ago

Thanks.