The following code
#include <threads.h>
Gives me this error:
fatal error: threads.h: No such file or directory
Using the latest GCC and Clang with -std=c11.
Is C11 threading not supported by GCC and Clang? Or is there a hack (or something to install) to get it? I'm just using Ubuntu 14.04 with the gcc and clang packages from the Ubuntu repo.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…