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

DMD 2.055 breaks the build

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



Joined: 21 May 2007
Posts: 24
Location: Bangalore

PostPosted: Fri Sep 09, 2011 2:07 am    Post subject: DMD 2.055 breaks the build Reply with quote

Build seems to be broken by dmd 2.055 -
src/glib/Spawn.d(268): Error: constructor glib.Spawn.Spawn.ReadFile.this no match for implicit super() call in constructor
make: *** [src/glib/Spawn.o] Error 1

I am building the previous version of gtkD, but I note that the latest packages are built with 2.054, so this could be applicable.

I'll look for a fix.

Steve
Back to top
View user's profile Send private message Send e-mail
teales



Joined: 21 May 2007
Posts: 24
Location: Bangalore

PostPosted: Fri Sep 09, 2011 2:26 am    Post subject: Reply with quote

Looks like the delegate for Thread has changed return type, and an explicit super(...) is required. The following builds OK. Changes marked ****.

this(FILE* file, bool delegate (string) read )
{
super(&run); //****
this.file = file;
this.read = read;
}

version(druntime)
{
public void run() //**** void
{
string line = readLine(file);
while( line !is null )
{
++lineCount;
if ( read !is null )
{
read(line);
}
line = readLine(file);
}
//return 0; ****
}
}

This should be OK, since the original run() method returns zero unconditionally.

Steve
Back to top
View user's profile Send private message Send e-mail
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Sep 10, 2011 7:44 am    Post subject: Reply with quote

This should already be fixed in GtkD 1.5.1.

See svn r888. Wink
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