sqlite-vec icon indicating copy to clipboard operation
sqlite-vec copied to clipboard

compile error

Open okunu opened this issue 1 year ago • 4 comments

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

okunu avatar Aug 29 '24 08:08 okunu

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

frederick-vs-ja avatar Aug 30 '24 07:08 frederick-vs-ja

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

has try it , not work

okunu avatar Sep 03 '24 09:09 okunu

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.

shuohyang avatar Oct 23 '24 19:10 shuohyang

您好:       您的信件已收到,谢谢!

okunu avatar Oct 23 '24 19:10 okunu