From b8bce0c7ed4e02426fa4de21fec385fbaa84a7b2 Mon Sep 17 00:00:00 2001 From: Chunsheng Pei Date: Fri, 27 Sep 2019 06:09:23 -0500 Subject: fixed the param order in g++ command and fixed the path for -L (#879) * fixed the param order in g++ command and fixed the path for -L * reorder the parameters for g++ command --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7eaa02a..a8aa276 100644 --- a/README.md +++ b/README.md @@ -182,8 +182,8 @@ library will be under the build directory you created. ```bash # Example on linux after running the build steps above. Assumes the # `benchmark` and `build` directories are under the current directory. -$ g++ -std=c++11 -isystem benchmark/include -Lbuild/src -lpthread \ - -lbenchmark mybenchmark.cc -o mybenchmark +$ g++ mybenchmark.cc -std=c++11 -isystem benchmark/include \ + -Lbenchmark/build/src -lbenchmark -lpthread -o mybenchmark ``` Alternatively, link against the `benchmark_main` library and remove -- cgit v1.2.3