greatgatsby
Joined: 06 Aug 2010 Posts: 10 Location: South Africa (Cape Town)
|
Posted: Thu Apr 18, 2013 3:23 pm Post subject: RES file not linking anymore with DMD v2.052 |
|
|
Hi Rainer,
I realize this is not strictly a Visual-D issue, but I thought I would give your forum a go 1st (Windows specific)...
I've finally gotten round to upgrading my DMD to v2.062 (from v2.059) as well as upgrading to Visual-D v0.3.35.
I've had no issues recompiling the DFL library I use with the latest DMD, so went on to rebuild a tool I previously developed. Everything compiled ok, but the linker choked on the RES file. (This project build fine and worked perfectly on previous versions of DMD up to and including v2.059). The error is:
Code: | OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
atrchecker.RES(3) : Error 52: .DEF Syntax Error
DO
^ |
I am sure that the "D0" and "^" is suppose to indicate the position of the error, but is pretty useless in this case.
I've googled on ".DEF Syntax Error" and, according to http://www.digitalmars.com/ctg/OptlinkErrorMessages.html, this indicates a "An invalid .def file syntax could not be parsed. ", which does not help much at all.
I am pretty confident though that it is not a DEF file issue since I am building a EXE (no DEF required). It also builds fine if I remove the RES file from the project.
Googling on "Error 52" bought up nothing substantial either.
The RC file for the RES file is extremely simple:
Code: |
101 ICON DISCARDABLE ".\\Resources\\scope4.ico"
205 BITMAP DISCARDABLE ".\\Resources\\TrustedLogic2.bmp"
STRINGTABLE DISCARDABLE
BEGIN
3001 "....some string!....."
END |
I've tried compiling the RC file with both the MS as well as the DM resource compiler:
For DM:
rcc -32 atrchecker.rc
For MS:
"c:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc" /r /v atrchecker.rc
The symptoms are exactly the same in both cases.
I can open the RES file with any number of resource editors (including Visual Studio and XN Resource Editor) and they all display the relevant BMPs and ICOs without errors.
Any ideas?
Regards,
Ettienne |
|