[fpc-pascal] connecting with Delphi (object files,dll etc)
Marco van de Voort
marcov at stack.nl
Fri Mar 31 13:40:53 CEST 2006
> > 3. Connecting object file is difficult: FPC doesn't support OMF (object
> > files), and in FPC 2.0.2 support for COFF (object files) seems to be
> > dropped. FPC produces PECOFF (object files).
> > Sometimes you can translate COFF to OMF by (free?) Borland utility
> > COFF2OMF, but it's not well documented: FPC *.o files are not translated,
> > and I don't know the exact reason (is it their PECOFFness or some other
> > incompatibility? maybe I just use them in a wrong way?).
>
> This is not correct. COFF is support, it is the object format of go32v2.
> Ofcourse is this not supported for the win32 target. Just like ELF is not
> supported for win32.
Note that coff2omf will probably not save you anyway due to name mangling
issues. (which might also be the reason for the dll trouble?)
More information about the fpc-pascal
mailing list