|
From: Markus H. <mar...@mh...> - 2007-08-28 08:49:41
|
Quoting Duncan McQueen <dwm...@gm...>: > Well, I still get an error when compiling the sqlite3 driver under MinGW: > > dbd_sqlite3.c: In function '_real_dbd_connect': > dbd_sqlite3.c:207: warning: passing argument 3 of > '_dbd_internal_error_handler' makes pointer from integer without a > cast I don't know what to make of these warnings. On my system I see the followin= g: $ grep _dbd_internal_error_handler /usr/local/include/dbi/* /usr/local/include/dbi/dbd.h:void =20 _dbd_internal_error_handler(dbi_conn_t *conn, const char *errmsg, const int errno); argument 3 is declared as int sqlite3_errcode; so I don't see what's wrong here. Do you have an old version of dbd.h =20 in your include path somewhere (/usr/include/dbi/)? > dbd_sqlite3.c:331: error: '_POSIX_PATH_MAX' undeclared (first use in > this function) Apparently the MinGW version of limits.h does not define this =20 constant. Could you please check whether any other include file does? =20 You'd have to include that in addition to limits.h then. If not, try adding something like this to the top of dbd_sqlite.c: ifndef _POSIX_PATH_MAX #define _POSIX_PATH_MAX 512 endif If you get it to work, please send me a diff so I can fix these =20 problems in the CVS code. regards, Markus --=20 Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |