i am desperately trying to compile the MySQL++ library header & cpp files in order to create the actual lib.
I do follow the exact instructions given in the ReadMe for MinGW.
Prerequisite: MySQL C API DLL Import Library ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Before you can build MySQL++ with MinGW, you will need to create a MinGW-compatible import library for MySQL's C API library. Using the current default install path for MySQL and assuming MySQL++ is in c:\mysql++, the commands to do this are: cd C:\Program Files\MySQL\MySQL Server 5.0\lib\opt dlltool -k -d c:\mysql++\libmysqlclient.def -l libmysqlclient.a
I cant manage to create that libmysqlclient.a file. It's actually there, but its size is 0bytes and it has no content. (since i downloaded MYSQL 5.1, i had to change the file path)
The second instruction is as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ With the prerequisites above taken care of, you can build MySQL++ with this command: mingw32-make -f Makefile.mingw Notice that we're using the MinGW-specific version of GNU make, not the Cygwin or MSYS versions. Many things will break otherwise: path separator handling, shell commands used by the Makefile, etc.
If i do this, the procedure throws an error with the following code:
C:\Users\R4036-02\Desktop\mysql++-3.1.0>mingw32-make -f Makefile.mingw g++ -c -o mysqlpp_beemutex.o -g -mthreads -DUNICODE -D_UNICODE -DMYSQLPP_NO_DLL -DHAVE_MYSQL_SSL_SET -I"C:\Program Files\MySQL\MySQL Server 5.1\include" -MTmy sqlpp_beemutex.o -MFmysqlpp_beemutex.o.d -MD -MP lib/beemutex.cpp g++: CreateProcess: No such file or directory mingw32-make: *** [mysqlpp_beemutex.o] Error 1
I got absolutely no clue of what i'm doing wrong.
I googled for like 6 hours now, trying everything described.
Hopefully someone can help me.
With kind regards
Edited 5 Years Ago by WolfPack: n/a