diff options
author | Chunsheng Pei <chunsheng.pei@gmail.com> | 2019-09-27 06:09:23 -0500 |
---|---|---|
committer | Dominic Hamon <dominichamon@users.noreply.github.com> | 2019-09-27 12:09:23 +0100 |
commit | b8bce0c7ed4e02426fa4de21fec385fbaa84a7b2 (patch) | |
tree | 5bdb2b0fb0a294850e0f8abad0df28b9cedb0129 | |
parent | b874e72208b6e21b62287942e5e3b11f6630107f (diff) | |
download | google-benchmark-b8bce0c7ed4e02426fa4de21fec385fbaa84a7b2.tar.gz |
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
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |