开发者

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: at开发者_Go百科omic_thread_fence is not a member of std

I am using g++ 4.5.2 in Ubuntu. What am I missing?


Do you have the following in test2.cc?

#include <atomic>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜