[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libmysql and mingw
From: |
Daniel Boyd |
Subject: |
libmysql and mingw |
Date: |
Fri, 8 Apr 2011 15:57:02 -0500 |
I have been trying with no success to use libmysql in Windows.
In my latest attempt, I downloaded this file:
http://devpaks.org/details.php?devpak=105
In ProjectCenter, I added libmysql.a to my libraries. Then, I added
the include directory in the project inspector.
Here is the relevant snippet of my GNUmakefile.preamble generated by
ProjectCenter:
# Additional include directories the compiler should search
ADDITIONAL_INCLUDE_DIRS += -Ic:/GNUstep/libmysql-5.0.5-1sid/include
# Additional library directories the linker should search
ADDITIONAL_LIB_DIRS += -LC:/GNUstep/libmysql-5.0.5-1sid/lib
# Additional GUI libraries to link
ADDITIONAL_GUI_LIBS += -lmysql
Here are some of the errors I'm getting when I try to compile my
program: (note, this source compiles in Linux)
$ make
This is gnustep-make 2.4.0. Type 'make print-gnustep-make-help' for help.
Making all for app WPImporter...
Compiling file database.m ...
In file included from c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:65,
from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:153:1: warning: "isnan" rede
fined
In file included from c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:27,
from c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:65,
from database.h:10,
from database.m:1:
c:\gnustep\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/math.h:411:1:
warning: this is the location of the previous definition
In file included from c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:65,
from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:197:1: warning: "finite" red
efined
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:154:1: warning: this is the
location of the previous definition
In file included from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:446:1: warning: "my_reinterpr
et_cast" redefined
In file included from c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:65,
from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:339:1: warning: this is the
location of the previous definition
In file included from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:1021:1: warning: "int3store"
redefined
In file included from c:/GNUstep/libmysql-5.0.5-1sid/include/my_global.h:65,
from database.h:10,
from database.m:1:
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:271:1: warning: this is the
location of the previous definition
In file included from database.h:10,
from database.m:1:
---SNIP (more of the same...)
Linking app WPImporter ...
Creating library file: ./WPImporter.app/./WPImporter.exe.a
./obj/WPImporter.obj/dbStatement.m.o: In function `ulonglong2double':
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:223: multiple definition of
`ulonglong2double'
./obj/WPImporter.obj/database.m.o:c:/GNUstep/libmysql-5.0.5-1sid/include/config-
win.h:223: first defined here
./obj/WPImporter.obj/dbStatement.m.o: In function `rint':
c:/GNUstep/libmysql-5.0.5-1sid/include/config-win.h:212: multiple definition of
`rint'
./obj/WPImporter.obj/database.m.o:c:/GNUstep/libmysql-5.0.5-1sid/include/config-
win.h:212: first defined here
collect2: ld returned 1 exit status
make[3]: *** [WPImporter.app/./WPImporter.exe] Error 1
make[2]: *** [internal-app-run-compile-submake] Error 2
make[1]: *** [WPImporter.all.app.variables] Error 2
make: *** [internal-all] Error 2
- libmysql and mingw,
Daniel Boyd <=