FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Link resources file problem
Posts: 21
Joined: Mon Nov 14, 2005 02:20 AM

Link resources file problem

Posted: Fri Jan 12, 2007 09:31 AM

Dear all

I just upgrade from FWH 2.4 + Harbour 4.20 + BCC55 to FWH 2006-DEC +
xHarbour .99.61 + BCC55

but I have a problem when I iLink the resources ( XX.res convert from XX.rc
with Borland WorkShop 4.5)

The error message is "contain invalid OMF record, type 0x00"

I have already recompiled all my source files with xHarbour .99.61

The link is OK when FWH 2.4 + Harbour 4.20 + BCC55

Anyone Help !

Best regards

Dixon Chu

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Link resources file problem

Posted: Sat Jan 13, 2007 07:01 PM

In a situation like that this is what I do. Make a copy of the RES file and delete about half of the resources. Then link again. If you still get the error, then delete half of what was left and link again. Continue until you find the problem resource.

However it doesn't sound like a resource error. Are you sure you not linking in an old OBJ or LIB?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Link resources file problem

Posted: Sat Jan 13, 2007 07:45 PM

Dixon,

> The error message is "contain invalid OMF record, type 0x00"

Please copy the entire output here.

It looks as you are mixing OMF and COFF files. Borland uses OMF and Microsoft uses COFF

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 21
Joined: Mon Nov 14, 2005 02:20 AM

Link resources file problem

Posted: Sun Jan 14, 2007 02:58 AM

The RES is linked OK with BCC55 + Harbour 42.0 + FWH 2.4 and
VC6 + xHarbour .99.61 + FWH6.12 also.
It only have problem on BCC55 + xHarbour .99.61 + FWH6.12

I try to delete some of items , and relink it , It still have same error

Thanks anyway , maybe I can go for VC6 + xHarbour .99.61 + FWH6.12

Best Regards

ps. sorry Antonio , I can't find the attachmemt button to upload the RES file

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Link resources file problem

Posted: Sun Jan 14, 2007 05:52 AM

Dixon,

>but I have a problem when I iLink the resources ( XX.res convert from XX.rc with Borland WorkShop 4.5)

Did you know that you have to convert the 16bit resource file to 32bit? It has been awhile since I did this and I don't remember excatly how. Perhaps someone will chime in with instructions.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Link resources file problem

Posted: Sun Jan 14, 2007 07:28 AM

Dixon,

Please check that you are using FiveHX.lib and FiveHC.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 21
Joined: Mon Nov 14, 2005 02:20 AM

Link resources file problem

Posted: Sun Jan 14, 2007 08:31 AM

Dear James and Antonio

yes ! I'm using FiveHX.lib and FiveHC.lib

and the RES is 32 bit also .

It's OK when I link this RES file at FWH/samples (FWH6.12)

OK , forget it, I'm going change to VC6 + xHarbour + FWH6.12

So , bye ! bye ! Borland C , I will miss you

Thanks James and Antonio

Best Regards!

Dixon Chu

Continue the discussion