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

Compiler errors with DMD v0.150

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
Phr00t



Joined: 03 Mar 2006
Posts: 203

PostPosted: Fri Mar 31, 2006 10:49 pm    Post subject: Compiler errors with DMD v0.150 Reply with quote

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



Joined: 30 Mar 2006
Posts: 56

PostPosted: Mon Apr 03, 2006 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Phr00t



Joined: 03 Mar 2006
Posts: 203

PostPosted: Mon Apr 03, 2006 9:45 pm    Post subject: Reply with quote

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



Joined: 30 Mar 2006
Posts: 56

PostPosted: Tue Apr 04, 2006 4:17 am    Post subject: Reply with quote

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



Joined: 03 Mar 2006
Posts: 203

PostPosted: Tue Apr 04, 2006 1:06 pm    Post subject: Reply with quote

>> 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
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Tue Apr 04, 2006 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Phr00t



Joined: 03 Mar 2006
Posts: 203

PostPosted: Thu Apr 06, 2006 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT 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