Ok, definitly there's something wrong going on here on the makefile(!?)...
I did a quick helloworld.c and compiled along with the very same library with sucess:
---------------------------------------------------------------------------
[root@localhost C tmp]# ll
total 4
-rwxr--r-- 1 root root 53 Apr 29 05:09 main.c
[root@localhost C tmp]# gcc main.c -L/usr/lib/mysql -lmysqlclient -o hellowithlib
main.c: In function âmainâ:
main.c:3: warning: incompatible implicit declaration of built-in function âprintfâ
[root@localhost C tmp]# ll
total 12
-rwxr-xr-x 1 root root 5160 Apr 29 05:10 hellowithlib
-rwxr--r-- 1 root root 53 Apr 29 05:09 main.c
[root@localhost C tmp]# ./hellowithlib
Hello word!!
---------------------------------------------------------------------------
pff...any ideas?