uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

Build steps #18

Closed websocket98765 closed 6 years ago

websocket98765 commented 6 years ago

uWebsockets can be built using:

make 
sudo make install

and included with

#include <uWS/uWS.h>

But uSockets doesn't have the same steps & the Makefile only builds demo applications. Can you provide guidance on to build/install uSockets so that it can be used in a user application via #include <libusockets.h> please?

I can submit your response as a PR to update the README. Thanks.

Edit: Goal is to use with a C++ project also containing uWebsockets.

ghost commented 6 years ago

I don't get it. The project already has a Makefile very clearly showing how you can build it. It's C - you shove those C files to your C compiler. That's about it.

websocket98765 commented 6 years ago

I thought it could be installed on the target machine and then used in the C++ app by using a link flag, like uWebsockets (-uWS). But I understand now the uSockets C files need to be compiled with a C compiler, the c++ files with a C++ compiler, and then all linked together using a C++ compiler. Will try to get that working.

(Writing to help future searchers.)