It's possible to use GFL libraries with DevC++ (mingw compiler) ???? If it's , how to do this ?
Thnks
GFL with DevC++
Moderators: helmut, XnTriq, xnview
Re: GFL with DevC++
You can use GFL librairies by dynamic loading. Use LoadLibrary/GetProcAdressLuk wrote:It's possible to use GFL libraries with DevC++ (mingw compiler) ???? If it's , how to do this ?
Pierre.
It is even easier. First you have to modify the header files (libgfl.h and libgfle.h), replace the folowing lines
by
Then you have to create .a files. To do that use the reimp tool (in your dev-cpp\bin directory) on the .lib provided (ex: reimp libgfl.lib).
Then copy the .a in the dev-cpp\lib directory.
Now you can use the library as other libraries and call the functions as normal functions.
Code: Select all
#ifdef WIN32
#ifdef __BORLANDC__
#pragma option -a8 /* switch to 8-bytes alignment */
#else
#pragma pack (push, before_push)
#pragma pack (8)
#endif
#else
#endif
Code: Select all
#ifdef WIN32
#if defined (__BORLANDC__)
#pragma option -a8 /* switch to 8-bytes alignment */
#elif defined (__MINGW32__)
#pragma pack (push, before_push, 8)
#else
#pragma pack (push, before_push)
#pragma pack (8)
#endif
#else
#endif
Then copy the .a in the dev-cpp\lib directory.
Now you can use the library as other libraries and call the functions as normal functions.