Commit b8bce0c7 by Chunsheng Pei Committed by Dominic Hamon

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
parent b874e722
...@@ -182,8 +182,8 @@ library will be under the build directory you created. ...@@ -182,8 +182,8 @@ library will be under the build directory you created.
```bash ```bash
# Example on linux after running the build steps above. Assumes the # Example on linux after running the build steps above. Assumes the
# `benchmark` and `build` directories are under the current directory. # `benchmark` and `build` directories are under the current directory.
$ g++ -std=c++11 -isystem benchmark/include -Lbuild/src -lpthread \ $ g++ mybenchmark.cc -std=c++11 -isystem benchmark/include \
-lbenchmark mybenchmark.cc -o mybenchmark -Lbenchmark/build/src -lbenchmark -lpthread -o mybenchmark
``` ```
Alternatively, link against the `benchmark_main` library and remove Alternatively, link against the `benchmark_main` library and remove
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment