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
Hi Pavol, sorry for slow reply, I had to do some investigation.
The libatomic library is not provided, hence the link time errors.
Can you build with the compiler option -ffreestanding, to enable the compiler to generate appropriate code without relying on such a library call? I'm not sure if this is available with 6.18 of the compiler, it is only documented for 6.21 or later. The current compiler version is 6.22.
https://developer.arm.com/documentation/101754/0622/armclang-Reference/armclang-Command-line-Options/-ffreestanding
You can download the latest compiler version from the below.
https://developer.arm.com/documentation/ka005198