Code: Select all
#include <atomic>
static int test()
{
std::atomic<long long> x;
return x;
}
int main()
{
return test();
}
Code: Select all
c:/users/username/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: CMakeFiles/cmTC_bfb5d.dir/atomic_check.cpp.obj:(.literal._ZNKSt13__atomic_baseIxEcvxEv[std::__atomic_base<long long>::operator long long() const]+0x8): undefined reference to `__atomic_load_8'