FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RES file not linking anymore with DMD v2.052

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
greatgatsby



Joined: 06 Aug 2010
Posts: 10
Location: South Africa (Cape Town)

PostPosted: Thu Apr 18, 2013 3:23 pm    Post subject: RES file not linking anymore with DMD v2.052 Reply with quote

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
Back to top
View user's profile Send private message
greatgatsby



Joined: 06 Aug 2010
Posts: 10
Location: South Africa (Cape Town)

PostPosted: Mon Apr 22, 2013 2:19 pm    Post subject: Reply with quote

Answered in http://forum.dlang.org/thread/qzgroeyrfndcogoopgsa@forum.dlang.org

Ettienne
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group