stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

make error #135

Open xxllp opened 5 years ago

xxllp commented 5 years ago

mkdir -p build gcc src/glove.c -o build/glove -lm -pthread -Ofast -march=native -funroll-loops -Wall -Wextra -Wpedantic src/glove.c:1:1: warning: C++ style comments are not allowed in ISO C90 [enabled by default] // GloVe: Global Vectors for Word Representation ^ src/glove.c:1:1: warning: (this will be reported only once per input file) [enabled by default] src/glove.c:57:6: warning: ISO C90 does not support ‘long long’ [-Wlong-long] long long num_lines, *lines_per_thread, vocab_size;

how to make the code ?

linnabrown commented 5 years ago

I have the same problem.

pjlintw commented 5 years ago

got same issue.

BlagaVic commented 5 years ago

Download the zip file from this link: https://nlp.stanford.edu/projects/glove/ Follow the instructions on that page and it should work.

giuliagrisot commented 2 years ago

hi, I followed the instructions but still get the same error. any ideas how to solve this?

WCCAI2021 commented 1 year ago

I used gcc 5.5 to solve.