[fpc-devel] linking resources on win64

vsnijders at quicknet.nl vsnijders at quicknet.nl
Fri Jun 29 11:12:02 CEST 2007


Hi,

I am experimenting with the gorc resource compile, which suposedly can create coff object files for win64 from .rc files. See http://www.jorgon.freeserve.co.uk/Resource.htm#int fifth paragraph.

I created lazarus.obj with the following command line:
C:\lazarus\source\lazarus\ide>c:\lazarus\downloads\Gorcjorg\GoRC.exe /machine X64 /fo lazarus.obj lazarus.rc

GoRC.Exe Version 0.90.2 - Copyright Jeremy Gordon 1998/2006 - JG at JGnet.co.uk
Output file: lazarus.obj format: X64

Then I added this line to my program:
{$LINK lazarus.obj}

I got this error message
C:\lazarus\source\lazarus\ide\lazarus.pp(119,1) Error: Error reading COFF Symtable while reading lazarus.obj

Thne I tried something else and add the line
{$R lazarus.obj}
I starts to look for lazarus.or and I renamed the file. Then I got this error message
C:\lazarus\source\lazarus\ide\lazarus.pp(119,1) Error: Error reading COFF Symtable while reading ..\units\x86_64-win64\lazarus.or

I attached object file that gorc created.

And now the questions:
Am I taking the right steps to includes a resource file that won't be compiled by windres?

Is using gorc a possible way to create resource files for inclusion in win64 programs compiled with fpc?

Why does fpc complain about the COFF Symtable?

Vincent

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lazarus.obj
Type: application/octet-stream
Size: 8431 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070629/d040d148/attachment.obj>


More information about the fpc-devel mailing list