Skip to content

Commit

Permalink
Add section on linking to satisfy #67
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichamon committed Dec 26, 2014
1 parent b40b66a commit fd7d288
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ A library to support the benchmarking of functions, similar to unit-tests.

Discussion group: https://groups.google.com/d/forum/benchmark-discuss

Example usage:
Example usage
-------------
Define a function that executes the code to be measured a
specified number of times:

Expand Down Expand Up @@ -158,3 +159,7 @@ static void BM_MultiThreaded(benchmark::State& state) {
}
BENCHMARK(BM_MultiThreaded)->Threads(2);
```

Linking against the library
---------------------------
When using gcc, it is necessary to link against pthread to avoid runtime exceptions. This is due to how gcc implements std::thread. See [issue #67](https://github.com/google/benchmark/issues/67) for more details.

0 comments on commit fd7d288

Please sign in to comment.