I tried to create an executable file for LZ4HC (I used the source code from lz4 homepage), but when I was trying to execute the file, it displayed "Symbol error LZ4_compressBound undefined". Neither static linking nor dynamical linking wasn't worked.
gcc -shared -ggdb3 -fPIC -o lz4hc.h lz4hc.c
or
gcc -c lz4hc.c -o lz4hc.o
ar rcs lz4hc.a lz4hc.o
Why the symbol LZ4_compressBound is undefined after the linking?