Thank you for the reply Ivan.
but still I have problem in compiling the fasttext, After downloading git the clone and do make, here is the error
alkha@LAPTOP-07KF9VT1 MINGW64 ~
$ cd fasttext
alkha@LAPTOP-07KF9VT1 MINGW64 ~/fasttext (master)
$ make
c++ -pthread -std=c++0x -O3 -funroll-loops -c src/fasttext.cc
src/fasttext.cc: In member function 'void fasttext::FastText::quantize(std::shar ed_ptr<fasttext::Args>)':
src/fasttext.cc:237:19: error: 'thread' is not a member of 'std'
std::vector<std::thread> threads;
^~~
src/fasttext.cc:237:19: error: 'thread' is not a member of 'std'
src/fasttext.cc:237:30: error: template argument 1 is invalid
std::vector<std::thread> threads;
^
src/fasttext.cc:237:30: error: template argument 2 is invalid
src/fasttext.cc:239:17: error: request for member 'push_back' in 'threads', whic h is of non-class type 'int'
threads.push_back(std::thread([=]() { trainThread(i); }));
^~~~~~~~~
src/fasttext.cc:239:27: error: 'thread' is not a member of 'std'
threads.push_back(std::thread([=]() { trainThread(i); }));
^~~
src/fasttext.cc:241:30: error: request for member 'begin' in 'threads', which is of non-class type 'int'
for (auto it = threads.begin(); it != threads.end(); ++it) {
^~~~~
src/fasttext.cc:241:53: error: request for member 'end' in 'threads', which is o f non-class type 'int'
for (auto it = threads.begin(); it != threads.end(); ++it) {
^~~
src/fasttext.cc: In member function 'void fasttext::FastText::train(std::shared_ ptr<fasttext::Args>)':
src/fasttext.cc:631:17: error: 'thread' is not a member of 'std'
std::vector<std::thread> threads;
^~~
src/fasttext.cc:631:17: error: 'thread' is not a member of 'std'
src/fasttext.cc:631:28: error: template argument 1 is invalid
std::vector<std::thread> threads;
^
src/fasttext.cc:631:28: error: template argument 2 is invalid
src/fasttext.cc:633:15: error: request for member 'push_back' in 'threads', whic h is of non-class type 'int'
threads.push_back(std::thread([=]() { trainThread(i); }));
^~~~~~~~~
src/fasttext.cc:633:25: error: 'thread' is not a member of 'std'
threads.push_back(std::thread([=]() { trainThread(i); }));
^~~
src/fasttext.cc:635:28: error: request for member 'begin' in 'threads', which is of non-class type 'int'
for (auto it = threads.begin(); it != threads.end(); ++it) {
^~~~~
src/fasttext.cc:635:51: error: request for member 'end' in 'threads', which is o f non-class type 'int'
for (auto it = threads.begin(); it != threads.end(); ++it) {
^~~
make: *** [Makefile:46: fasttext.o] Error 1
Here is the info about the gcc
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=m ingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-i sl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune= generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='Min GW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwar f2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libic onv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable -libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
Any help?
Thank you