std :: g ++中的原子支持4.4.3 [英] std::atomic support in g++ 4.4.3
本文介绍了std :: g ++中的原子支持4.4.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Ubuntu操作系统上使用g ++版本4.4.3。根据此矩阵这里,它也应该支持 std :: atomic
。每次使用
I am using g++ version 4.4.3 on Ubuntu OS. According to this matrix here it is supposed to support also std::atomic
. Each time I use
#include <atomic>
编译器给我一个错误,并说错误: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>
推荐答案
尝试 #include< cstdatomic>
。
这篇关于std :: g ++中的原子支持4.4.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文