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

new RC3 does not compile

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
captaindet



Joined: 19 May 2011
Posts: 6

PostPosted: Thu May 19, 2011 7:31 am    Post subject: new RC3 does not compile Reply with quote

great to see a new snapshot!

however, i am unable to compile the dfl libs.

i get following error:
variable FIRST_MENU_ID cannot be read at compile time
and compilation fails upon

using win xp, dmd 2.053, dfl 20110508 (RC3), tried the .zip and .exe version, tried 'dfl -dfl-build' and 'makelib.bat'.

any idea what is going wrong?
Back to top
View user's profile Send private message
Andrej08



Joined: 31 Aug 2010
Posts: 51

PostPosted: Thu May 19, 2011 2:56 pm    Post subject: Reply with quote

Just move this declaration on line 1355 in Application.d:

Code:

ushort prevMenuID = FIRST_MENU_ID;


to below line 1362, after this declaration:
Code:
const ushort FIRST_MENU_ID = 200;
Back to top
View user's profile Send private message
Andrej08



Joined: 31 Aug 2010
Posts: 51

PostPosted: Thu May 19, 2011 2:57 pm    Post subject: Reply with quote

This is probably caused by new CTFE fixes. I don't think it's a bug, it makes sense to declare a variable before using it, regardless if it's const or not.
Back to top
View user's profile Send private message
captaindet



Joined: 19 May 2011
Posts: 6

PostPosted: Fri May 20, 2011 6:18 am    Post subject: Reply with quote

thx a bunch. that works.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL 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