gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libmysql.so help


From: Jon Hill
Subject: libmysql.so help
Date: Wed, 14 Jan 2004 12:26:15 +0000
User-agent: KMail/1.5

Hi 

I am trtying to compile libmysql.so in smsd but am unsure of how to configure 
the Makefile.

when I run make libmysql.so I get the following output

make libmysql.so
gcc -s -shared -o libmysql.so -g -O2  -I../include 
-DMODULES_DIR=\"/usr/local/lib/smsd\" -D_REENTRANT -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I../include \
-I'/usr/include' mysql.c -L/usr/lib -lglib -L'/usr/lib/mysql' -lmysqlclient 
-lz -lcrypt -lnsl -lm
mysql.c:35:19: mysql.h: No such file or directory
mysql.c:40: parse error before "mysqlIn"
mysql.c:40: warning: data definition has no type or storage class
mysql.c:41: parse error before "mysqlOut"
mysql.c:41: warning: data definition has no type or storage class
mysql.c: In function `DB_Look':
mysql.c:137: `MYSQL_RES' undeclared (first use in this function)
mysql.c:137: (Each undeclared identifier is reported only once
mysql.c:137: for each function it appears in.)
mysql.c:137: `res1' undeclared (first use in this function)
mysql.c:138: `MYSQL_ROW' undeclared (first use in this function)
mysql.c:138: parse error before "row"
mysql.c:171: `row' undeclared (first use in this function)
make: *** [libmysql.so] Error 1

My default Makefile reads

# MySQL support
libmysql.so: smsd.h mysql.c
        gcc -s -shared -o libmysql.so $(CFLAGS) -I../include \
        $(shell mysql_config --cflags) mysql.c $(shell $(GLIBLDLIBS)) $(shell 
mysql_config --libs)

Could some help me with the configuration?

thanks

Jon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]