OpenWebSpider

How to link libmysql.lib with Dev-C++ or GCC under windows



The problem is that only MS Visual C++ can link libmysql.lib but there is a trick
to compile with Dev c++(I used version 4.9.9.2) or GCC:

> reimp.exe <FULL_PATH_OF(eX. X:\MySQL\lib\opt)>libmysql.lib
(^ This command creates: libmysql.def AND libmysql.a)

> dlltool.exe --input-def LIBMYSQL.def --dllname libmysql.dll --output-lib libmysql.dll
(^ this creates libmysql.dll)

Now You must copy libmysql.a in the "LIB" folder of dev-cpp (Ex. ...\Dev-Cpp\lib\) and
and use "-lmysql -lws2_32" as additional linker options

This way is good for all applications who needs to compile mysql library under
windows with dev c++ or GCC

NOTE:
(1) You could found reimp here:
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.2.tar.gz?download
(2) You can download my libmysql.a or libmysql.dll






Your Text Link here with
Pay-Per-Link


London Property
If you are looking for a London property to buy or rent, Hot Property has the property for you. Hot Property lists thousands of properties for sale throughout London and the UK.

Computer Support
Century Computing offer full service computer support to clients within London. Reduce your IT and computer support costs with now. Call us for a quote.

Green Belt Courses
Six Sigma : Green Belt Courses. Green Belts have a key role within the six sigma programme. Typically a Green Belt will lead a six sigma project in their work area, or contribute to a project led by a Black Belt.

Pharmaceutical Sales Jobs
Zenopa Ltd is a recruitment agency that specialises in Pharmaceutical sales jobs and medical sales jobs.

Discount Designer Clothes
Find discount designer clothes at Koodos. We'll bring you a range of designer clothes and designer brands at discount prices.

Mattresses
Search and compare mattresses and prices online to make sure you get a good deal. View a range at the site above.

cheap ink cartridge
Just because you want a cheap ink cartridge doesn't mean that it has to be low quality too. We provide fully guaranteed quality cartridges!