Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build steps #18

Closed
websocket98765 opened this issue Nov 8, 2018 · 2 comments
Closed

Build steps #18

websocket98765 opened this issue Nov 8, 2018 · 2 comments

Comments

@websocket98765
Copy link

websocket98765 commented Nov 8, 2018

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
Copy link

ghost commented Nov 16, 2018

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.

@ghost ghost closed this as completed Nov 16, 2018
@websocket98765
Copy link
Author

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.)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant