Software discussion

Web software | www.agner.org

 
thread Internal error IO1609 - Steven Lee - 2009-09-08
last reply Internal error IO1609 - Agner - 2009-09-08
 
Internal error IO1609
Author:  Date: 2009-09-08 07:54
I downloaded the c example from Using C object files in Delphi(http://www.rvelthuis.de/articles/articles-cobjs.html).
when I compiled regexp.c with bcc32, it works in delphi.

when I compiled it with this way,
gcc -c -o regexp.o regexp.c
objconv -fomf -nu -nd regexp.o
when I tried to compile the dephi example, it said "Internal error IO1609".
and I do not know why, could you give me some hints, thanks in advance.

   
Internal error IO1609
Author: Agner Date: 2009-09-08 15:56
Delphi is not designed for linking object files from foreign sources, and the requirements for such object files are not documented. Is the error IO1609 documented?
Are you using gcc under Windows or under Linux? I think it works with the Linux version of gcc. Try to make a dump or disassembly of the converted object file to see if it meets the requirements in the objconv manual section 11.4.
You may file a bug report to Delphi if you can't find the solution. They ought to document things better.