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
e9a49be7
Commit
e9a49be7
authored
Feb 21, 2018
by
Jonathan Wakely
Committed by
Dominic Hamon
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update note about linking with pthreads (#536)
parent
19048b7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
README.md
README.md
+5
-2
No files found.
README.md
View file @
e9a49be7
...
@@ -893,8 +893,11 @@ If you are using gcc, you might need to set `GCC_AR` and `GCC_RANLIB` cmake cach
...
@@ -893,8 +893,11 @@ If you are using gcc, you might need to set `GCC_AR` and `GCC_RANLIB` cmake cach
If you are using clang, you may need to set
`LLVMAR_EXECUTABLE`
,
`LLVMNM_EXECUTABLE`
and
`LLVMRANLIB_EXECUTABLE`
cmake cache variables.
If you are using clang, you may need to set
`LLVMAR_EXECUTABLE`
,
`LLVMNM_EXECUTABLE`
and
`LLVMRANLIB_EXECUTABLE`
cmake cache variables.
## Linking against the library
## 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.
When the library is built using GCC it is necessary to link with
`-pthread`
,
due to how GCC implements
`std::thread`
.
For GCC 4.x failing to link to pthreads will lead to runtime exceptions, not linker errors.
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
## Compiler Support
...
...
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