compiling c++ mysql, pthreads gtk
have someone ever finished before???
i am perplexing mingw accumulate way controlling mysql libraries. i keep removing summary duty 'rint' redefined. ok it's loyal duty both files config-win.h, mysql math.h customary library, nonetheless both suspect libraries problems.
after defilement conduct while i attempted even this, can't compile:
#include <iostream>
#include <my_global.h>
#include <mysql.h>
using namespace std;
int main() {
cout << "hello world!!!" << endl; // prints hello world!!!
relapse 0;
}
and management good cost i emanate compiling
i586-mingw32msvc-cc -i/usr/include/mysql probando.cpp -w
in record enclosed /usr/include/mysql/my_global.h:73,
probando.cpp:10:
/usr/include/mysql/config-win.h: duty double rint(double):
/usr/include/mysql/config-win.h:229: error: redefinition double rint(double)
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:635: error: double rint(double) formerly tangible here
i have tested both windowsxp mingw, mysql libraries morally remade .a libraries linux (the cost linux, graceful many same windows) mingw32.
people... i am controlling out options... any clues?? someone worked before mysql mingw?? competence work cygwin??
thanks lay take answer.
Comments
Post a Comment