compiler failure in c++ 20 using the new semaphore library

Viewed 1235

c++20 introduced the library, however i'm unable to use it.

this is my compile line: g++-10 -std=c++20 sem.cpp -o sem

the error that I get is:

sem.cpp:4:10: fatal error: semaphore: No such file or directory
    4 | #include <semaphore>
      |          ^~~~~~~~~~~
compilation terminated.

I tried using a different compiler clang++ but it didn't make any difference.

Using Linux.

1 Answers
Related