MinTL problem

Daniel Keep daniel.keep at dummy.gmail.com
Wed Apr 12 05:15:22 PDT 2006


Hey there.

I was wondering if anyone could shed some light on a problem I'm having;
I'm currently trying to use MinTL, and keep getting compile errors.  The
source I'm using is:

(optparse.d)
import mintl.list;

int main(char[][] argv)
{
    List!(int) x;
    return 0;
}

Which I compile with:

$ dmd optparse.d mintl.lib

Where the mintl package is on the import path, and mintl.lib is on the
LIB path.  dmd then gives me this:

e:\Bin\Bin\..\Include\other\mintl\list.d(688): operation not allowed on
bool '((*this).isEmpty)()'
e:\Bin\Bin\..\Include\other\mintl\list.d(726): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(726):
ListReverseIter!(Value,ReadOnly,Alloc) is used as a type
e:\Bin\Bin\..\Include\other\mintl\list.d(726): variable
mintl.list.List!(int).List.backwards.res voids have no value
e:\Bin\Bin\..\Include\other\mintl\list.d(727): no property 'list' for
type 'int'
e:\Bin\Bin\..\Include\other\mintl\list.d(727): constant (res).list is
not an lvalue
e:\Bin\Bin\..\Include\other\mintl\list.d(727): cannot implicitly convert
expression (this) of type List * to int
e:\Bin\Bin\..\Include\other\mintl\list.d(728): cannot implicitly convert
expression (res) of type int to ListReverseIter
e:\Bin\Bin\..\Include\other\mintl\list.d(311): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(311): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(311): template instance
List!(Value,true,Alloc) is used as a type
e:\Bin\Bin\..\Include\other\mintl\list.d(311): variable
mintl.list.List!(int,true,GCAllocator ).List.readonly.res voids have no
value
e:\Bin\Bin\..\Include\other\mintl\list.d(313): cannot implicitly convert
expression (res) of type int to List
e:\Bin\Bin\..\Include\other\mintl\list.d(318): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(318): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(318): template instance
List!(Value,false,Alloc) is used as a type
e:\Bin\Bin\..\Include\other\mintl\list.d(318): variable
mintl.list.List!(int,true,GCAllocator ).List.readwrite.res voids have no
value
e:\Bin\Bin\..\Include\other\mintl\list.d(320): cannot implicitly convert
expression (res) of type int to List
e:\Bin\Bin\..\Include\other\mintl\list.d(650): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(650): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(650): template instance
List!(Value,false,Alloc) is used as a type
e:\Bin\Bin\..\Include\other\mintl\list.d(650): variable
mintl.list.List!(int,true,GCAllocator ).List.dup.res voids have no value
e:\Bin\Bin\..\Include\other\mintl\list.d(655): no property 'readonly'
for type 'int'
e:\Bin\Bin\..\Include\other\mintl\list.d(655): cannot implicitly convert
expression (1) of type int to List
e:\Bin\Bin\..\Include\other\mintl\list.d(688): operation not allowed on
bool '((*this).isEmpty)()'
e:\Bin\Bin\..\Include\other\mintl\list.d(726): template instance cannot
resolve forward reference
e:\Bin\Bin\..\Include\other\mintl\list.d(726):
ListReverseIter!(Value,ReadOnly,Alloc) is used as a type
e:\Bin\Bin\..\Include\other\mintl\list.d(726): variable
mintl.list.List!(int,true,GCAllocator ).List.backwards.res voids have no
value
e:\Bin\Bin\..\Include\other\mintl\list.d(727): no property 'list' for
type 'int'
e:\Bin\Bin\..\Include\other\mintl\list.d(727): constant (res).list is
not an lvalue
e:\Bin\Bin\..\Include\other\mintl\list.d(727): cannot implicitly convert
expression (this) of type List * to int
e:\Bin\Bin\..\Include\other\mintl\list.d(728): cannot implicitly convert
expression (res) of type int to ListReverseIter
e:\Bin\Bin\..\Include\other\mintl\list.d(6): template instance
mintl.list.List!(int) error instantiating

I'm sure it's the latest version, since I downloaded it the other day.
list.d says it is revision 2.7.1.

I just can't work out what I'm doing wrong.  Any suggestions?

	-- Daniel

-- 

v1sw5+8Yhw5ln4+5pr6OFma8u6+7Lw4Tm6+7l6+7D
a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP    http://hackerkey.com/



More information about the Digitalmars-d mailing list