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

compile error #93

Open
okunu opened this issue Aug 29, 2024 · 4 comments
Open

compile error #93

okunu opened this issue Aug 29, 2024 · 4 comments

Comments

@okunu
Copy link

okunu commented Aug 29, 2024

please help me, when i run the command "make all",the result is like this:

/usr/bin/ld: dist/.libs/sqlite3.a(sqlite3.o): in function pthreadMutexTry': /home/owen/workspace/sqlite-vec/vendor/sqlite3.c:29387: undefined reference to pthread_mutex_trylock'
/usr/bin/ld: dist/.libs/sqlite3.a(sqlite3.o): in function sqlite3ThreadJoin': /home/owen/workspace/sqlite-vec/vendor/sqlite3.c:33869: undefined reference to pthread_join'
/usr/bin/ld: /home/owen/workspace/sqlite-vec/sqlite-vec.c:469: undefined reference to sqrt' /home/owen/workspace/sqlite-vec/sqlite-vec.c:849: undefined reference to ceil'

many undefined reference

@frederick-vs-ja
Copy link

frederick-vs-ja commented Aug 30, 2024

These are linking errors. Perhaps -lpthread and -lm should be added somewhere? (althought lm is already added to Makefile)

@okunu
Copy link
Author

okunu commented Sep 3, 2024

These are linking errors. Perhaps -lpthread and -lm should be added somewhere? (althought lm is already added to Makefile)

has try it , not work

@shuo-y
Copy link

shuo-y commented Oct 23, 2024

Probably -lm, -ldl, and -lpthread should be added to the command of the target $(TARGET_LOADABLE) in the Makefile in the root directory. The Makefile in the examples/simple-c/ seems to need -lm, -ldl, and -lpthread as well.

@okunu
Copy link
Author

okunu commented Oct 23, 2024 via email

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

3 participants