I put my shared library,libbktrans.so.0.0, in /usr/local/lib. Here, I make two links:
ln -sf libbktrans.so.0.0 libbktrans.so.0
ln -sf libbktrans.so.0 libbktrans.so
Then declare preloading this library:
export LD_PRELOAD=/usr/local/lib/libbktrans.so.0

i have demo.c to test. So it contains functions declared in shared lib.
//demo.c
#include BkTransLib.h//interfaces of functions in shared lib.
.......

I compile demo.c:
gcc -Wall -g -c demo.c -o demo.o
Create program demo:
gcc -g -o demo demo.o -L. -lbktrans
Execute the program
LD_LIBRARY_PATH="." ./demo

result---> perfect.

Now i create a C project by KDevelop with Automake. I add demo.c and BkTransLib.h into my project. But I can not build this project. because of errors. those errors are "undefined reference" to the functions in shared lib.

I know i missed something in telling the project to link my shared lib. But i don't know how.
Please tell me what.
Thank you so much.