Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
de4ead7a
Commit
de4ead7a
authored
Aug 09, 2016
by
Eric
Committed by
GitHub
Aug 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document compiler requirements (#269)
parent
96a5965b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
README.md
README.md
+18
-2
No files found.
README.md
View file @
de4ead7a
...
@@ -541,6 +541,22 @@ cmake -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_LTO=true
...
@@ -541,6 +541,22 @@ cmake -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_LTO=true
```
```
## Linking against the library
## Linking against the library
When using gcc, it is necessary to link against pthread to avoid runtime
When using gcc, it is necessary to link against pthread to avoid runtime
exceptions.
exceptions.
This is due to how gcc implements std::thread.
This is due to how gcc implements std::thread.
See
[
issue #67
](
https://github.com/google/benchmark/issues/67
)
for more details.
See
[
issue #67
](
https://github.com/google/benchmark/issues/67
)
for more details.
## Compiler Support
Google Benchmark uses C++11 when building the library. As such we require
a modern C++ toolchain, both compiler and standard library.
The following minimum versions are strongly recommended build the library:
*
GCC 4.8
*
Clang 3.4
*
Visual Studio 2013
Anything older
*may*
work.
Note: Using the library and its headers in C++03 is supported. C++11 is only
required to build the library.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment