Conversion VC++ library to GNU (MinGW, GCC) format

Sometimes you have to use other compiler than VC++ (ok, be honest, in most cases 🙂 ), but what to do when your libs are in VC++ format? Solution is very easy, and it will be shown below on MySQL library case.

I assume you have mingw.

Download mingw-utils:

reimp.exe -d libmysql.lib
dlltool.exe -k -d libmysql.def -l libmysql.a

That’s all folks 🙂


How to compile libjpeg using mingw

Downlaod latest MinGW from sourceforge: and install it to c:\MinGW

Download latest libjpeg sources from: and untar it to c:\MinGW\msys\1.0\home\

Launch msys shell: c:\MinGW\msys\1.0\msys.bat
cd /home//libjpeg-
make install

now in .libs folder we will have files: libjpeg.a, libjpeg.dll.a and libjpeg-7.dll