Use C11 compiler: Your compiler doesn't support C11 atomics. gcc 4.9/clang 3.6 are the minimum versions with it - perhaps your compiler is too old? C11 atomics support not found