开发者

atomic_thread_fence is not a member of std

开发者 https://www.devze.com 2023-04-11 14:08 出处:网络
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

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

精彩评论

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

关注公众号