Forum > Third party

COFF Magic Error

(1/1)

kiko_of_davao:
I am new to Lazarus. I wish to use it to enable existing Turbo Pascal (Ver 7.0) .EXE files to run under Windows 10.  My .PAS source file contains  the link directive {$L  VGADRV.OBJ}.   This .OBJ file is in the same directory as the .PAS file.  When I attempt to compile this in Lazarus IDE v2.02 I get the Error message:

          "Error: Illegal COFF Magic while reading C:\Lazarus\Play_Pen\VGADRV.OBJ

What work-around can I use to enable compilation?  Thank you for your insights

Thaddy:
COFF is not OMF. TP mode doesn't understand that binary format. And that is correct!

engkin:

--- Quote from: kiko_of_davao on April 27, 2019, 11:51:51 am ---What work-around can I use to enable compilation?  Thank you for your insights

--- End quote ---

Try objconv.

marcov:
Where does the obj come from? If it is from TP, it won't work as TP is 16-bit and FPC (generally) 32 or 64-bit.

440bx:

--- Quote from: engkin on April 27, 2019, 12:32:03 pm ---Try objconv.

--- End quote ---
Very nice stuff there.  Thank you for mentioning it.

Now, I'm really wondering how I never "bumped" into that site before. 

Navigation

[0] Message Index

Go to full version