[gnome-db] A little help with MinGW
- From: sankar bose <shankarbose imp gmail com>
- To: gnome-db-list gnome org
- Subject: [gnome-db] A little help with MinGW
- Date: Fri, 12 Feb 2010 01:52:55 +0530
Hi everybody,
i am not a linux user so i dont understand how to solve this problem.
i am trying to compile libgda with mingw .Using the msys shell i used the below command
$ ./configure --prefix=/c/libgdam/ --with-mysql=/c/MySQL
i have installed the gtkmm dev package for windows so all the dependencies are also installed. Everything working fine until the compilation goes into the providers dir where i faced the below problem..
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -export-dynamic -module
-avoid-version -no-undefined -o
libgda-mysql.la -rpath /c/libgdam/lib/libgda-
4.0/providers gda-mysql-blob-op.lo gda-mysql-ddl.lo gda-mysql-parser.lo gda-mysq
l-handler-boolean.lo gda-mysql-provider.lo gda-mysql-meta.lo gda-mysql-recordset
.lo gda-mysql-util.lo gda-mysql-pstmt.lo libmain.lo parser.lo ../../libgda/libgd
a-4.0.la -Lc:/gtkmm/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -li
ntl -lxml2 -LC:/MySQL/lib/opt/ -lmysql -lmysqlclient
libtool: link: rm -fr .libs/libgda-mysql.dll.a
libtool: link: gcc -shared .libs/gda-mysql-blob-op.o .libs/gda-mysql-ddl.o .lib
s/gda-mysql-parser.o .libs/gda-mysql-handler-boolean.o .libs/gda-mysql-provider.
o .libs/gda-mysql-meta.o .libs/gda-mysql-recordset.o .libs/gda-mysql-util.o .lib
s/gda-mysql-pstmt.o .libs/libmain.o .libs/parser.o ../../libgda/.libs/libgda-4
.0.dll.a -Lc:/gtkmm/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -li
ntl -lxml2 -LC:/MySQL/lib/opt/ -lmysql -lmysqlclient -o .libs/libgda-mysql.dl
l -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgda-mysql
.dll.a
Creating library file: .libs/libgda-mysql.dll.a
.libs/gda-mysql-provider.o: In function `real_prepare':
c:\libgda-4.0.7\providers\mysql/gda-mysql-provider.c:1638: undefined reference to `mysql_stmt_init 4'
c:\libgda-4.0.7\providers\mysql/gda-mysql-provider.c:1645: undefined reference to `mysql_stmt_attr_set 12'
c:\libgda-4.0.7\providers\mysql/gda-mysql-provider.c:1651: undefined reference to `mysql_stmt_prepare 12'
c:\libgda-4.0.7\providers\mysql/gda-mysql-provider.c:1671: undefined reference to `mysql_stmt_close 4'
from the above messages i understand that its not properly linking with the libmysqlclient.a lib file , i have tried to make changes in the make files so it can link properly but nothing work out. i have started c++ gui programing with gtkmm and
Murray
has given me a advice to use libgda . i know that precompiled libs are available but i want to atleast compile this package on my own so i will be little more confident when using this package. Please provide any solution to this problem.......
with regards.........
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]