[fpc-devel] VMT compatibility

Michael Van Canneyt michael at freepascal.org
Sun Jan 30 13:21:40 CET 2005



On Sun, 30 Jan 2005, Marco van de Voort wrote:

> >   // Call C++ function and pass to it our "special" interface
> >   Result := D3DXLoadMeshHierarchyFromX_FPC_{$}(Filename, MeshOptions,
> > pD3DDevice, AllocI, pUserDataLoader, ppFrameHierarchy, ppAnimController);
> >
> >   Dec(PInteger(AllocI)^, $C); // Patch interface VMT - BACK
> > end;
> >
> > But I really want FPC be compatible with Delphi in this situation.
>
> If I recall correctly, this was all done because the linker had problems with
> symbols with negative offsets.

This is correct. In combination with smartlinking, I think.

Michael.




More information about the fpc-devel mailing list