FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Illegal Character in DEF File Error
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Illegal Character in DEF File Error
Posted: Fri Mar 03, 2006 06:38 PM

I am trying to compile an appliction that I have compiled before. Now I am getting this error:

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Tussman.res(1):'Invalid character in .DEF file'
Fatal: Error processing .DEF file

There is a Tussman.rc file that is converted to Tussman.res by the resource compiler. I can't find a .DEF file anywhere.

I gradually deleted everything in the RC file until it was empty and I still get the same error. After I removed both the RC and RES files, then it compiles without error.

Any ideas? What is a .DEF file?

I am using the buildh.bat file, with slight modifications to include a couple of extra OBJs.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Illegal Character in DEF File Error
Posted: Fri Mar 03, 2006 08:07 PM

If I remember correctly, a DEF file is a 16 bit stuff. You might have mixed the batch files.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Illegal Character in DEF File Error
Posted: Fri Mar 03, 2006 10:05 PM

James,

It may be an extra or a missing "," when calling the linker. Please let us see how you call the linker.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Illegal Character in DEF File Error
Posted: Fri Mar 03, 2006 10:40 PM

Antonio,

Yeah, a missing comma it was. I would have never thought of that.

Thanks,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Illegal Character in DEF File Error
Posted: Sat Mar 04, 2006 06:04 AM
[quote="
Yeah, a missing comma it was....

You sound like Master Yoda of StarWars :-)
Saludos

R.F.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Illegal Character in DEF File Error
Posted: Sat Mar 04, 2006 09:50 AM
RF wrote:

Yeah, a missing comma it was....


You sound like Master Yoda of StarWars :-)


:-)

EMG

Continue the discussion