Page 1 of 1

GFL SDK in Dev-C++

Posted: Sat Oct 14, 2006 10:55 am
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!!!!

Re: GFL SDK in Dev-C++

Posted: Sun Oct 15, 2006 11:51 am
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++????

Posted: Sun Oct 15, 2006 12:32 pm
by jakubcjusz
So, is it possible to run this library under Dev C++?

Posted: Sun Oct 15, 2006 4:22 pm
by xnview
jakubcjusz wrote:So, is it possible to run this library under Dev C++?
I don't know...

Posted: Tue Oct 17, 2006 12:20 am
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.