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
This commit is contained in:
Chunsheng Pei 2019-09-27 06:09:23 -05:00 committed by Dominic Hamon
parent b874e72208
commit b8bce0c7ed
1 changed files with 2 additions and 2 deletions

View File

@ -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