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

Cannot build with D1

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
skirino



Joined: 17 Jun 2010
Posts: 4

PostPosted: Wed Feb 01, 2012 6:55 am    Post subject: Cannot build with D1 Reply with quote

Using dmd1 compilation of GtkD-1.5.1 failed as follows:
Code:

glib => DD-glib
glib/DateTime.d(212): function glib.DateTime.DateTime.opEquals of type bool(Object rhs) overrides but is not covariant with object.Object.opEquals of type int(Object o)
glib/DateTime.d(212): function glib.DateTime.DateTime.opEquals does not override any function
Command /home/skirino/code/D/dsss/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.

It's simply due to difference in type signature of 'opEquals' between D1 and D2.
If I modify 'bool' to 'int', compilation succeeds without any problem.
Can someone please fix this?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Feb 01, 2012 3:12 pm    Post subject: Reply with quote

Fixed in svn r927.
Back to top
View user's profile Send private message
skirino



Joined: 17 Jun 2010
Posts: 4

PostPosted: Sun Feb 05, 2012 9:42 am    Post subject: Reply with quote

Thanks Mike!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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