In case you have this error message while making the library, Just open the Make file, then replace the lines CC = cc LD = ld CFLAGS = -fPIC With CC = cc LD = gcc CFLAGS = -fPIC