Hi.
Try with Dev-Cpp
download pexports-043 (search in google) I don't know the site.
... and execute ...
1. pexports libmysql.dll > libmysql.def
2. dlltool comes with dev-cpp
dlltool -k --input-def libmysql.def --dll-name libmysql.dll --output-lib libmysql.a
3. create a project (with a source code), in project menu->project options->parameters->linker-> add -lmysql
4. compile and link your program
5. a error ocorred
a unrecognized ... mysql_init@4
or something like this.
6. edit limysql.def and add @number in front of the function. Example:
a unrecognized ... mysql_init@4
in libmysql.def
(you find like this)
...
...
mysql_init
...
...
(so)
...
...
mysql_init@4
...
...
save the file. execute dlltool again, and try compile/link,
Bye