Building fasttext with Visual Studio

While working on classifying knowledge management documents needed word embedding, and this required me to build fasttext on windows using visual studio, as cmake was not available.

Here’s a visual summary of the steps with few things I faced while building fasttext with visual studio 2013.

 

 

 

 

 

 

 

 

 

 

 

Error    4    error C2146: syntax error : missing ‘;’ before identifier ‘size’    d:\project\fasttext-master\fasttext-master\src\utils.h    19    1    fasttext

Error    5    error C4430: missing type specifier – int assumed. Note: C++ does not support default-int    d:\project\fasttext-master\fasttext-master\src\utils.h    19    1    fasttext

Error    6    error C2061: syntax error : identifier ‘int64_t’    d:\project\fasttext-master\fasttext-master\src\utils.h    20    1    fasttext

Error    7    error C2146: syntax error : missing ‘;’ before identifier ‘size’    d:\project\fasttext-master\fasttext-master\src\utils.cc    18    1    fasttext

Error    8    error C4430: missing type specifier – int assumed. Note: C++ does not support default-int    d:\project\fasttext-master\fasttext-master\src\utils.cc    18    1    fasttext

Error    9    error C2086: ‘int fasttext::utils::int64_t’ : redefinition    d:\project\fasttext-master\fasttext-master\src\utils.cc    18    1    fasttext

 

Error    11    error C2061: syntax error : identifier ‘int64_t’    d:\project\fasttext-master\fasttext-master\src\utils.cc    23    1    fasttext

Error    12    error C2065: ‘pos’ : undeclared identifier    d:\project\fasttext-master\fasttext-master\src\utils.cc    25    1    fasttext

Error    24    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\productquantizer.cc    115    1    fasttext

Error    25    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\productquantizer.cc    115    1    fasttext

Error    26    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\productquantizer.cc    134    1    fasttext

Error    27    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\productquantizer.cc    134    1    fasttext

Error    55    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\fasttext.cc    207    1    fasttext

Error    56    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\fasttext.cc    207    1    fasttext

 

 

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s