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!!!!
GFL SDK in Dev-C++
Moderators: helmut, XnTriq, xnview
Re: GFL SDK in Dev-C++
libgfl.lib is not built for dev c++, orperhaps there is a tool to convert .lib MS Visual into .lib Dev C++????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!!!!
Pierre.
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
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.
Code: Select all
-llibgfl254 -llibgfle254