chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.4k stars 282 forks source link

How to compile and link own project #62

Closed salimerko closed 3 years ago

salimerko commented 3 years ago

Hi,

I can build a whole library as per instructions, but I am not able to use it in my own project. Even, if I want just to recompile and build "cppserver-performance-tcp_echo_client.cpp"

g++ -std=c++17 -o client tcp_echo_client.cpp -I /pathToMyOwnBoost/include -I /pathToCppServer/include -L /CppServer/temp -l libcppserver.a -lboost_system

With this command I am still getting compiler error:

In file included from /home/administrator/CppServer/CppServer/include/server/asio/asio.h:38, from /home/administrator/CppServer/CppServer/include/server/asio/service.h:12, from asio_service.h:9, from tcp_chat_client.cpp:9: /home/administrator/boost_1_76_0/boost/asio.hpp:57:10: fatal error: boost/asio/execution.hpp: No such file or directory 57 | #include <boost/asio/execution.hpp>

Boost version 1.76.0 Any help would be really appreciated