Std :: atomic support in g ++ 4.4.3

I am using g ++ version 4.4.3 on Ubuntu OS. According to this matrix here , it should also support std::atomic . Every time i use

  #include <atomic> 

the compiler gives me an error and says error: atomic: No such file or directory .

Are you having the same issue? I compile using the following line

  g++ -std=c++0x -Wall myCode.cpp -o myApp</code> 
+6
atomic c ++ 11 g ++
source share
1 answer

Try #include <cstdatomic> .

+9
source share

All Articles