eminfedar/async-sockets-cpp

Installation under debian

Closed this issue · 4 comments

Hello, is there a quick way to install in Debian so I can use globally on all my projects?
Thank you

  1. Run make in easysocket/ folder
  2. Run sudo install.sh in 'easysocket/' folder to install library system-wide
  3. Done!

Then you can link library with -leasysocket

Hello,

I tried that. I got no errors but when I compile, I get this:

heisenbergk@HeisenbergK-OMEN:~$ g++ -leasysocket tryeasysock.cpp
tryeasysock.cpp:4:10: fatal error: tcpserver.h: No such file or directory
#include <tcpserver.h>
^~~~~~~~~~~~~
compilation terminated.

In the tryeasysock.cpp I have the tcp-server example.

You should write like this: <easysocket/tcpserver.h>

Because header files are in /usr/local/include/easysocket folder.

That's great!!

I also used link_libraries( pthread easysocket ) in CMake to finish the deal.

Thank you