How to use the SDK with Borland...

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

Moderators: helmut, XnTriq, xnview

th0rn
Posts: 1
Joined: Thu Sep 09, 2004 12:19 pm

How to use the SDK with Borland...

Post by th0rn »

Hi there...

I tryed to add the gfl*.lib files from the bcc folder to my project...
But it tells me: "Invalid OMF record type 0x21 (possibly COFF)"

then i used coff2omf with the files from bcc folder...
then it told me something like "unresolved external... _functionXY etc"

then I tryed to use coff2omf on a lib that came from another directory... then the compiler told me again: "Invalid OMF record type 0x21 (possibly COFF)"

anyone has succesfully linked the library ?


Thanks in advance, hopefully somebody is knowing about this.

Greetz,
Ole
MaierMan
Posts: 78
Joined: Wed Aug 04, 2004 8:32 pm

Re: How to use the SDK with Borland...

Post by MaierMan »

th0rn wrote:Hi there...

I tryed to add the gfl*.lib files from the bcc folder to my project...
But it tells me: "Invalid OMF record type 0x21 (possibly COFF)"

then i used coff2omf with the files from bcc folder...
then it told me something like "unresolved external... _functionXY etc"

then I tryed to use coff2omf on a lib that came from another directory... then the compiler told me again: "Invalid OMF record type 0x21 (possibly COFF)"

anyone has succesfully linked the library ?


Thanks in advance, hopefully somebody is knowing about this.

Greetz,
Ole
Make your own import libraries with implib.
This is required because Borland uses another lib file-structure than MSVC does.

Code: Select all

implib -c bor_libgfl211.lib libgfl211.dll
or
implib -a -c bor_libgfl211.lib libgfl211.dll
This is how it works for me. Depending on the case (some windows headers are "buggy" when used with borland, thus you might need different version of the import library).
You may also play a bit more with the options of implib.
Guest

Re: How to use the SDK with Borland...

Post by Guest »

MaierMan wrote:
th0rn wrote:Hi there...

I tryed to add the gfl*.lib files from the bcc folder to my project...
But it tells me: "Invalid OMF record type 0x21 (possibly COFF)"

then i used coff2omf with the files from bcc folder...
then it told me something like "unresolved external... _functionXY etc"

then I tryed to use coff2omf on a lib that came from another directory... then the compiler told me again: "Invalid OMF record type 0x21 (possibly COFF)"

anyone has succesfully linked the library ?


Thanks in advance, hopefully somebody is knowing about this.

Greetz,
Ole
Make your own import libraries with implib.
This is required because Borland uses another lib file-structure than MSVC does.

Code: Select all

implib -c bor_libgfl211.lib libgfl211.dll
or
implib -a -c bor_libgfl211.lib libgfl211.dll
This is how it works for me. Depending on the case (some windows headers are "buggy" when used with borland, thus you might need different version of the import library).
You may also play a bit more with the options of implib.