File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,15 @@ Example
91
91
node example-server.js
92
92
93
93
# 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
95
97
./example-client
96
98
97
99
# ...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
99
103
./example-client-cpp11
100
104
101
105
# Expect the output from example-client:
You can’t perform that action at this time.
0 commit comments