What compile are using?? If you’re on gcc then you could -l flag to link the libraries or perhaps you also specify the library path explicitly. The following are the few examples
using -l flag
gcc -o myCode -Wall myCode.c /usr/lib/libm.a
As you could see I was trying to link the maths library. The –lName flag will allow you link the libraries.
gcc -o myCode -Wall myCode.c -lm
Name is nothing but the libm.a. You need to find the the name of the library and try link them this way. That should probably work!