开发者

std::atomic support in g++ 4.4.3

开发者 https://www.devze.com 2023-02-03 10:56 出处:网络
I am using g++ version 4.4.3 on开发者_JS百科 Ubuntu OS. According to this matrix here it is supposed to support also std::atomic. Each time I use

I am using g++ version 4.4.3 on开发者_JS百科 Ubuntu OS. According to this matrix here it is supposed to support also std::atomic. Each time I use

 #include <atomic>

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

Have you experienced the same problem? I am compiling using the following line

    g++ -std=c++0x -Wall myCode.cpp -o myApp</code>


Try #include <cstdatomic> instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消