epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Need help on fasttext.h atomic error #27

Closed prakritidev closed 6 years ago

prakritidev commented 6 years ago

Hi,

I know this is silly problem but I just can't find how to solve this problem.

In file included from sent2vec.cpp:315:

./fasttext.h:18:10: fatal error: 'atomic' file not found
#include <atomic>
         ^~~~~~~~

1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
guptaprkhr commented 6 years ago

Hi @prakritidev, I think this is because your compiler doesn't support C++ 11. header file is not present in the earlier versions of C++. I am closing this issue for now.

prakritidev commented 6 years ago

Yes, I figured it out after investing very long time. I forgot to close this issue.

My apologies.

ahmdtaha commented 6 years ago

I faced the same problem, Adding this flag solved it for me