Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols: _fgetc_unlocked #48

Open
ryandesign opened this issue Nov 1, 2019 · 1 comment
Open

Undefined symbols: _fgetc_unlocked #48

ryandesign opened this issue Nov 1, 2019 · 1 comment

Comments

@ryandesign
Copy link

The latest code in the repository does not build on macOS:

/usr/bin/clang word2vec.c -o word2vec -O3 -arch x86_64 -lm -pthread -Wall -funroll-loops
word2vec.c:74:10: warning: implicit declaration of function 'fgetc_unlocked' is invalid in C99 [-Wimplicit-function-declaration]
    ch = fgetc_unlocked(fin);
         ^
1 warning generated.
Undefined symbols for architecture x86_64:
  "_fgetc_unlocked", referenced from:
      _ReadWord in word2vec-f21758.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [word2vec] Error 1
@Genie-Liu
Copy link

there's a pr to fix this. #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants