$ make example
cc -L. -lbasexdbc example.c -o example
/usr/bin/ld: /tmp/ccyvSAeg.o: in function `main':
example.c:(.text+0x30): undefined reference to `basex_connect'
/usr/bin/ld: example.c:(.text+0x72): undefined reference to `basex_authenticate'
/usr/bin/ld: example.c:(.text+0xb5): undefined reference to `basex_execute'
/usr/bin/ld: example.c:(.text+0x188): undefined reference to `basex_close'
collect2: error: ld returned 1 exit status
make: *** [GNUmakefile:33: example] Error 1
Solution
Change 33nd line in GNUmakefile
to $(CC) -L. example.c -o $@ -l$(LIBNAME) -lcrypto -lssl
I am getting following error while make
Solution Change 33nd line in GNUmakefile to
$(CC) -L. example.c -o $@ -l$(LIBNAME) -lcrypto -lssl