View previous topic :: View next topic |
Author |
Message |
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Fri Mar 31, 2006 10:49 pm Post subject: Compiler errors with DMD v0.150 |
|
|
cwd > C:\dmd\packages\dwt\examples\misc
build.exe hello.d -gui -O -release -clean -Xdwt -version=OLE_COM
c:\dmd\import\dwt\custom\styledtext.d(294): identifier expected following '.', not 'scope'
c:\dmd\import\dwt\custom\styledtext.d(304): identifier expected following '.', not 'scope'
c:\dmd\import\dwt\custom\styledtext.d(532): identifier expected following '.', not 'scope'
c:\dmd\import\dwt\custom\styledtext.d(536): identifier expected following '.', not 'scope'
c:\dmd\import\dwt\printing\printerdata.d(63): no identifier for declarator int
c:\dmd\import\dwt\printing\printerdata.d(63): semicolon expected, not 'scope'
c:\dmd\import\dwt\printing\printerdata.d(63): Declaration expected, not 'scope'
c:\dmd\import\dwt\custom\styledtext.d(199): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(199): Hashtable!(Integer,Integer) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(199): variable dwt.custom.styledtext.StyledText.keyActionMap voids have no value
c:\dmd\import\dwt\custom\styledtext.d(257): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(257): Hashtable!(Color,Color) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(257): variable dwt.custom.styledtext.StyledText.Printing.printerColors voids have no value
c:\dmd\import\dwt\custom\styledtext.d(258): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(258): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(258): variable dwt.custom.styledtext.StyledText.Printing.lineBackgrounds voids have no value
c:\dmd\import\dwt\custom\styledtext.d(259): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(259): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(259): variable dwt.custom.styledtext.StyledText.Printing.lineStyles voids have no value
c:\dmd\import\dwt\custom\styledtext.d(260): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(260): Hashtable!(Integer,int[]) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(260): variable dwt.custom.styledtext.StyledText.Printing.bidiSegments voids have no value
c:\dmd\import\dwt\custom\styledtext.d(727): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtext.d(727): Vector!(Color) is used as a type
c:\dmd\import\dwt\custom\styledtext.d(727): variable dwt.custom.styledtext.StyledText.RTFWriter.colorTable voids have no value
c:\dmd\import\dwt\custom\styledtexthelper.d(1712): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1712): Vector!(StyledTextListener) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1712): variable dwt.custom.styledtexthelper.DefaultContent.textListeners voids have no value
c:\dmd\import\dwt\custom\styledtexthelper.d(1385): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1385): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1385): variable dwt.custom.styledtexthelper.PrintRenderer.lineBackgrounds voids have no value
c:\dmd\import\dwt\custom\styledtexthelper.d(1386): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1386): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1386): variable dwt.custom.styledtexthelper.PrintRenderer.lineStyles voids have no value
c:\dmd\import\dwt\custom\styledtexthelper.d(1387): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1387): Hashtable!(Integer,int[]) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1387): variable dwt.custom.styledtexthelper.PrintRenderer.bidiSegments voids have no value
c:\dmd\import\dwt\custom\styledtexthelper.d(1406): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): cannot have parameter of type void
c:\dmd\import\dwt\custom\styledtexthelper.d(1407): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): Hashtable!(Integer,StyledTextEvent) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): cannot have parameter of type void
c:\dmd\import\dwt\custom\styledtexthelper.d(1407): template instance cannot resolve forward reference
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): Hashtable!(Integer,int[]) is used as a type
c:\dmd\import\dwt\custom\styledtexthelper.d(1404): cannot have parameter of type void
c:\dmd\import\dwt\printing\printdialog.d(42): no identifier for declarator int
Finished
[ All you need to do to fix this problem is just rename all the "scope" variables to somthing else ] |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Mon Apr 03, 2006 3:56 am Post subject: |
|
|
I guess you've solved the problem for your own use already, but here's a dmd version that compiles dwt 0.32 without errors.
http://ftp.digitalmars.com/dmd.148.zip |
|
Back to top |
|
|
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Mon Apr 03, 2006 9:45 pm Post subject: |
|
|
Hrm, isn't the latest version of DWT 0.36? I don't like using older compilers /DWT versions to make programs work... DWT will have to be improved at some point to work with the latest compilers -- luckilly this is a relatively easy change (renaming the "scope" variables). I hope people are working on this? |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Tue Apr 04, 2006 4:17 am Post subject: |
|
|
Sorry, I meant to say DWT 0.36. You can't expect to be able to use the latest compiler when the language keeps changing. |
|
Back to top |
|
|
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Tue Apr 04, 2006 1:06 pm Post subject: |
|
|
>> You can't expect to be able to use the latest compiler when the language keeps changing. Wink
Yes yes... that is true. However, if you keep putting off 'upgrading to the latest compiler' -- pretty soon you will be buried at version 0.148, and upgrading to version 1.0 will be insane...
I'm hoping D will not change too much, so upgrading code to the latest compilers will not need much work... but its a good idea to try and 'keep up' |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Tue Apr 04, 2006 8:28 pm Post subject: |
|
|
Phr00t wrote: | >> You can't expect to be able to use the latest compiler when the language keeps changing. Wink
Yes yes... that is true. However, if you keep putting off 'upgrading to the latest compiler' -- pretty soon you will be buried at version 0.148, and upgrading to version 1.0 will be insane...
I'm hoping D will not change too much, so upgrading code to the latest compilers will not need much work... but its a good idea to try and 'keep up' |
I don't think that DMD has been changing that much. From glancing at the error message, it seems that "scope" is used as an identifier, but "scope" recently became a keyword. So the identifier just has to be renamed (perhaps it should be called "listerine"). It's possible the rest of the errors just cascade from that initial problem. |
|
Back to top |
|
|
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Thu Apr 06, 2006 9:14 pm Post subject: |
|
|
Quote: | I don't think that DMD has been changing that much. From glancing at the error message, it seems that "scope" is used as an identifier, but "scope" recently became a keyword. So the identifier just has to be renamed (perhaps it should be called "listerine"). It's possible the rest of the errors just cascade from that initial problem. |
You're right... there are quite a few places where "scope" needs to be renamed... but this is the only issue. I tried SVN'ing DWT awhile back, and it had even more compile errors (I think) -- I really hope someone is working on this, because I don't think there is a better GUI library out there... (DFL doesn't seem very linux friendly?) |
|
Back to top |
|
|
|