Installation under debian
Closed this issue · 4 comments
HeisenbergK commented
Hello, is there a quick way to install in Debian so I can use globally on all my projects?
Thank you
eminfedar commented
- Run
make
ineasysocket/
folder - Run
sudo install.sh
in 'easysocket/' folder to install library system-wide - Done!
Then you can link library with -leasysocket
HeisenbergK commented
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.
eminfedar commented
You should write like this: <easysocket/tcpserver.h>
Because header files are in /usr/local/include/easysocket
folder.
HeisenbergK commented
That's great!!
I also used link_libraries( pthread easysocket )
in CMake to finish the deal.
Thank you