View previous topic :: View next topic |
Author |
Message |
captaindet
Joined: 19 May 2011 Posts: 6
|
Posted: Thu May 19, 2011 7:31 am Post subject: new RC3 does not compile |
|
|
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 |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Thu May 19, 2011 2:56 pm Post subject: |
|
|
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 |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Thu May 19, 2011 2:57 pm Post subject: |
|
|
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 |
|
|
captaindet
Joined: 19 May 2011 Posts: 6
|
Posted: Fri May 20, 2011 6:18 am Post subject: |
|
|
thx a bunch. that works. |
|
Back to top |
|
|
|