I get linking errors when I use atomic functions in code. How could I solve it?

Hello,

I include <atomic>

I use functions test_and_set() and clear().

Programming language C++14 and my compiler is armclang 6.18 I get the errors:

Some recommendations or suggestions?

Thank you in advance