diff --git a/README.md b/README.md index e159ea9..828b469 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,6 @@ For HTTPS: OpenSSL libraries from https://www.openssl.org are required. ### Compile and run Compile with a C++11 compiler supporting regex (for instance g++ 4.9): - -On Linux using g++: add `-pthread` - -Note: added `-lboost_filesystem` for the default_resource example, and `-lboost_thread` to make the json-example thread safe. Also added `-lboost_coroutine -lboost_context` to make synchronous flushing of response stream work. On some systems you might have to use postfix `-mt` to link to these libraries. - -You can now also compile using CMake and make: - ``` cmake . make @@ -47,19 +40,15 @@ make #### HTTP -`g++ -O3 -std=c++11 http_examples.cpp -lboost_system -lboost_thread -lboost_coroutine -lboost_context -lboost_filesystem -o http_examples` +Run the server and client examples: `./http_examples` -Then to run the server and client examples: `./http_examples` - -Also, direct your favorite browser to for instance http://localhost:8080/ +Direct your favorite browser to for instance http://localhost:8080/ #### HTTPS -`g++ -O3 -std=c++11 https_examples.cpp -lboost_system -lboost_thread -lboost_coroutine -lboost_context -lboost_filesystem -lssl -lcrypto -o https_examples` - Before running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html -Then to run the server and client examples: `./https_examples` +Run the server and client examples: `./https_examples` -Also, direct your favorite browser to for instance https://localhost:8080/ +Direct your favorite browser to for instance https://localhost:8080/