Skip to content

Commit b036610

Browse files
committed
Working example build instructions
1 parent cbfa74c commit b036610

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,15 @@ Example
9191
node example-server.js
9292

9393
# Build and launch the client:
94-
g++ example-client.cpp -o example-client
94+
g++ -c easywsclient.cpp -o easywsclient.o
95+
g++ -c example-client.cpp -o example-client.o
96+
g++ example-client.o easywsclient.o -o example-client
9597
./example-client
9698

9799
# ...or build and launch a C++11 client:
98-
g++ -std=gnu++0x example-client-cpp11.cpp -o example-client-cpp11
100+
g++ -std=gnu++0x -c easywsclient.cpp -o easywsclient.o
101+
g++ -std=gnu++0x -c example-client-cpp11.cpp -o example-client-cpp11.o
102+
g++ example-client-cpp11.o easywsclient.o -o example-client-cpp11
99103
./example-client-cpp11
100104

101105
# Expect the output from example-client:

0 commit comments

Comments
 (0)