I'm trying to compile something like:
// gcc atomic.cpp -Wall -athread=native -std=c++20
#include <atomic>
int main()
{
std::atomic_bool ab = false;
ab = true;
ab.notify_one();
ab.wait(false);
return 0;
}
But it gives linker errors. Issue seems to be functionality added in C++20 (wait and notify_one). Wondering if this is some known issue and should I report it somewhere.
Edited by Capehill on 2025/12/4 20:31:41