> I am trying to compile c.c
looks like you are trying to compile testk.c?
The kx c-api library is distributed as c.o or c.dll, depending on your target OS. It can be downloaded from
http://kx.com/q/l32/c.o / linux 32 bit
http://kx.com/q/w32/c.dll / windows 32bit
http://kx.com/q/m32/c.o / osx 32bit
etc.
Then if using gcc, assuming that testk.c, c.o and k.h are in the current directory,
compile as
gcc -m32 -D KXVER=3 testk.c c.o -o testk -lpthread
thanks