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:
https://sourceforge.net/projects/mingw/files/MinGW/Extension/mingw-utils/mingw-utils-0.3/mingw-utils-0.3.tar.gz/download

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

That’s all folks 🙂

Advertisements

One thought on “Conversion VC++ library to GNU (MinGW, GCC) format

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s