libtbb-dev: Do we need -latomic to include tbb via pkg-config?
Asked by
sohei koyama
when we install libtbb-dev, `/usr/lib/
```
$ cat /usr/lib/
prefix=/usr
exec_prefix=
libdir=
includedir=
Name: Threading Building Blocks
Description: Intel's parallelism library for C++
URL: http://
Version:
Libs: -ltbb -latomic
Cflags:
```
`Libs: -ltbb -latomic` is Suspicious.
I understand that -latomic is needed when using std::atomic.
However, in version 2020.1-2, std::atomic is not used , and tbb/atomic.h is used instead.
(Note: in versioin 2021 or later, std::atomic is used)
So I think -latomic is not needed.
Thank you for reading my little question !
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu tbb Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
To post a message you must log in.