Compile MySql with Nginx
arleybls
nginx-forum at nginx.us
Fri Apr 29 21:10:24 MSD 2011
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 at localhost C tmp]# ll
total 4
-rwxr--r-- 1 root root 53 Apr 29 05:09 main.c
[root at 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 at 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 at localhost C tmp]# ./hellowithlib
Hello word!!
---------------------------------------------------------------------------
pff...any ideas?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,194220,194500#msg-194500
More information about the nginx
mailing list