MinTL problem

James Dunne james.jdunne at gmail.com
Wed Apr 12 07:36:00 PDT 2006


Daniel Keep wrote:
> 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
> 

You're not doing anything wrong - I don't think the MinTL library has 
been updated in quite some time.  Try downgrading compiler versions 
until you find one that works with it if that's acceptable for you. 
Otherwise, ask Ben Hinkle (author) to update it.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU/S d-pu s:+ a-->? C++++$ UL+++ P--- L+++ !E W-- N++ o? K? w--- O 
M--@ V? PS PE Y+ PGP- t+ 5 X+ !R tv-->!tv b- DI++(+) D++ G e++>e 
h>--->++ r+++ y+++
------END GEEK CODE BLOCK------

James Dunne



More information about the Digitalmars-d mailing list