[英]atomic_thread_fence is not a member of std
Compiling with: 编译:
g++ -std=c++0x -Wall -pthread test2.cc -o hello
I'm getting this error: 我收到此错误:
test2.cc: atomic_thread_fence is not a member of std
I am using g++ 4.5.2 in Ubuntu. 我在Ubuntu中使用g ++ 4.5.2。 What am I missing?
我想念什么?
您在test2.cc中是否具有以下内容?
#include <atomic>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.