From b0366105c592d381da8a11c4d8b26062c5bb0ac2 Mon Sep 17 00:00:00 2001 From: Donald Pillou Date: Mon, 30 Dec 2013 15:45:35 +0100 Subject: [PATCH] Working example build instructions --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73adf86..5b6c86b 100644 --- a/README.md +++ b/README.md @@ -91,11 +91,15 @@ Example node example-server.js # Build and launch the client: - g++ example-client.cpp -o example-client + g++ -c easywsclient.cpp -o easywsclient.o + g++ -c example-client.cpp -o example-client.o + g++ example-client.o easywsclient.o -o example-client ./example-client # ...or build and launch a C++11 client: - g++ -std=gnu++0x example-client-cpp11.cpp -o example-client-cpp11 + g++ -std=gnu++0x -c easywsclient.cpp -o easywsclient.o + g++ -std=gnu++0x -c example-client-cpp11.cpp -o example-client-cpp11.o + g++ example-client-cpp11.o easywsclient.o -o example-client-cpp11 ./example-client-cpp11 # Expect the output from example-client: