Mysql library
Carlos Ceriani
carlos at inmueblenorte.com.ar
Mon Dec 30 22:47:26 GMT 2002
Hi, I need to know how to add the mysqlclient library to my project
I put "-lmysqlclient" in Additionals libraries on Linker options but then I
need to tell where to find this library.
Well, with the script:
AC_ARG_WITH(mysql,
[ --with-mysql=DIR prefix of MySQL installation. e.g. /usr/local or /usr],
[MYSQL_PREFIX=$with_mysql],
[
echo -n "checking for myslq..."
mysqlenc="no"
for dir in /usr /usr/mysql /usr/local /usr/local/mysql /sql
do
if test -f "$dir/include/mysql/mysql.h"
then
MYSQL_PREFIX=$dir
mysqlenc="${MYSQL_PREFIX}/lib/mysql"
break
fi
done
echo "$mysqlenc"
]
)
I get on $MYSQL_PREFIX/lib/mysql the path to libmysqlclient.a and
in $MYSQL_PREFIX/include/mysql the path to the header mysql.h
So, I need to know where shold I put this script.
Thanks
Carlos Ceriani
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list