View previous topic :: View next topic |
Author |
Message |
teales
Joined: 21 May 2007 Posts: 24 Location: Bangalore
|
Posted: Fri Sep 09, 2011 2:07 am Post subject: DMD 2.055 breaks the build |
|
|
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 |
|
|
teales
Joined: 21 May 2007 Posts: 24 Location: Bangalore
|
Posted: Fri Sep 09, 2011 2:26 am Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Sep 10, 2011 7:44 am Post subject: |
|
|
This should already be fixed in GtkD 1.5.1.
See svn r888. |
|
Back to top |
|
|
|