GFL SDK in Dev-C++

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
jakubcjusz

GFL SDK in Dev-C++

Post by jakubcjusz »

How to use GFL SDK in Dev-C++. After installing libraries end add "include" and "lib" paths to compiler I still can't compile any program. Error showed:

[Linker error] undefined reference to `gflGetFileInformation@12'

After adding "bor_libgfl211.lib libgfl211.dll" to compile options program compiles, but doesn't want to works, and shows: "Program to big to put it into memory". HELP!!!!
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: GFL SDK in Dev-C++

Post by xnview »

jakubcjusz wrote:How to use GFL SDK in Dev-C++. After installing libraries end add "include" and "lib" paths to compiler I still can't compile any program. Error showed:

[Linker error] undefined reference to `gflGetFileInformation@12'

After adding "bor_libgfl211.lib libgfl211.dll" to compile options program compiles, but doesn't want to works, and shows: "Program to big to put it into memory". HELP!!!!
libgfl.lib is not built for dev c++, orperhaps there is a tool to convert .lib MS Visual into .lib Dev C++????
Pierre.
jakubcjusz

Post by jakubcjusz »

So, is it possible to run this library under Dev C++?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

jakubcjusz wrote:So, is it possible to run this library under Dev C++?
I don't know...
Pierre.
michalis
Posts: 1
Joined: Mon Oct 16, 2006 11:58 pm

Post by michalis »

You can convert the *.lib files inside the GflSDK/lib/ into *.a files (suitable for MinGW) by reimp program. "reimp" is a part of mingw-utils from http://www.mingw.org/download.shtml. Once you have reimp, just run "reimp libgfl.lib" and "reimp libgfle.lib" inside GflSDK/lib/ and you will get files "liblibgfl254.a" and "liblibgfle254.a". Now you can copy them to DevCpp/lib/ directory and link your programs like

Code: Select all

  -llibgfl254  -llibgfle254
I tested this on gfl_example.c program and it works. Well, almost --- I had to add a cast "(void*)" before "bitmap_table" in gflMerge call to make it compile (probably some other, cleaner cast would be better but I only wanted to make it compile). After this change, the program runs fine.
Post Reply