Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

TBB error : atomic is undefined

Aleksandr_S_1
Beginner
344 Views

I got a C++ code in VS2013 using Intel Compiler XE 15. I write

#include "tbb/atomic.h"

...atomic<int> x;

I get identifier 'atomic' is undefined. what did I do wrong?

0 Kudos
1 Solution
RafSchietekat
Valued Contributor III
344 Views

Replace "..." with "tbb::".

View solution in original post

0 Kudos
1 Reply
RafSchietekat
Valued Contributor III
345 Views

Replace "..." with "tbb::".

0 Kudos
Reply