compile error
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
These are linking errors. Perhaps -lpthread and -lm should be added somewhere? (althought lm is already added to Makefile)
These are linking errors. Perhaps
-lpthreadand-lmshould be added somewhere? (althoughtlmis already added to Makefile)
has try it , not work
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.
您好: 您的信件已收到,谢谢!