Thread overview
Checking DateTime.d wont compile
Mar 07, 2008
Rusty
Mar 07, 2008
Jesse Phillips
Mar 07, 2008
Rusty
Mar 07, 2008
Jesse Phillips
Mar 07, 2008
Rusty
Mar 07, 2008
Frank Benoit
Mar 09, 2008
Rusty
Mar 09, 2008
Frank Benoit
Mar 09, 2008
Rusty
March 07, 2008
Compiler complain on line 595
int s = value.lastIndexOf(' ');
whats the problem
March 07, 2008
On Thu, 06 Mar 2008 21:04:40 -0500, Rusty wrote:

> Compiler complain on line 595
> int s = value.lastIndexOf(' ');
> whats the problem

What's the compiler message, the OS being used, this is of the dwt library and not from the samples correct? And sorry I have to ask but, is this Ty Tower by any chance?
March 07, 2008
Jesse Phillips Wrote:

> On Thu, 06 Mar 2008 21:04:40 -0500, Rusty wrote:
> 
> > Compiler complain on line 595
> > int s = value.lastIndexOf(' ');
> > whats the problem
> 
> What's the compiler message, the OS being used, this is of the dwt library and not from the samples correct? And sorry I have to ask but, is this Ty Tower by any chance?

Not clear on your meaning but message is dwt/widgets/DateTime.d(595): Error: undefined identifier lastIndexOf
OS is dmd1.0.27 tango 0,95.1
yes dwt
no

March 07, 2008
On Thu, 06 Mar 2008 23:58:50 -0500, Rusty wrote:

> Jesse Phillips Wrote:
> 
>> On Thu, 06 Mar 2008 21:04:40 -0500, Rusty wrote:
>> 
>> > Compiler complain on line 595
>> > int s = value.lastIndexOf(' ');
>> > whats the problem
>> 
>> What's the compiler message, the OS being used, this is of the dwt library and not from the samples correct? And sorry I have to ask but, is this Ty Tower by any chance?
> 
> Not clear on your meaning but message is dwt/widgets/DateTime.d(595):
> Error: undefined identifier lastIndexOf OS is dmd1.0.27 tango 0,95.1
> yes dwt
> no

It looks like that section of code was not fully ported yet. This will need to be fixed, but it does beg the question of how you are compiling?

I as because we aren't having this problem, and will it's not a linker error it might relate to the same error. I would try an fix it, but since I can't reproduce it I won't know when it is fixed.
March 07, 2008
>
> need to be fixed, but it does beg the question of how you are compiling?
> 
> I as because we aren't having this problem, and will it's not a linker error it might relate to the same error. I would try an fix it, but since I can't reproduce it I won't know when it is fixed.
I do not follow it i is not compiling do you mean compiler statement?
I am using dsss build 2006-2007 by Gregor Richards as advised by digitalmars site
March 07, 2008
Rusty schrieb:
> Compiler complain on line 595
> int s = value.lastIndexOf(' ');
> whats the problem

Yesterday i did some edits in dwt.dwthelper.utils to sync it with dwt-linux. Perhaps that fixed the problem. Actually i don't get a compile error on windows.

Can you retry please?
March 09, 2008
Frank Benoit Wrote:

> Rusty schrieb:
> > Compiler complain on line 595
> > int s = value.lastIndexOf(' ');
> > whats the problem
> 
> Yesterday i did some edits in dwt.dwthelper.utils to sync it with dwt-linux. Perhaps that fixed the problem. Actually i don't get a compile error on windows.
> 
> Can you retry please?
try with 1.027 dmd to compile  dwt-linux-e0ffca35fe59,dwt-linux-cf2672c3e4fb,dwt-linux-08789b28bdf3
in all case now get
ets/TypedListener.d dwt/widgets/Widget.d -oflibDD-dwt.a

dwt/DWTError.d(145): Error: undefined identifier info
dwt/DWTError.d(145): Error: cannot infer type for msg
dwt/DWTError.d(150): Error: no property 'info' for type 'object.Exception'
dwt/DWTError.d(150): Error: cannot infer type for msg
dwt/DWTException.d(135): Error: undefined identifier info
dwt/DWTException.d(135): Error: cannot infer type for msg
dwt/DWTException.d(140): Error: no property 'info' for type 'object.Exception'
dwt/DWTException.d(140): Error: cannot infer type for msg
then lots more
not getting past yet still working get pssed soon
March 09, 2008
Rusty schrieb:
> Frank Benoit Wrote:
> 
>> Rusty schrieb:
>>> Compiler complain on line 595
>>> int s = value.lastIndexOf(' ');
>>> whats the problem
>> Yesterday i did some edits in dwt.dwthelper.utils to sync it with dwt-linux. Perhaps that fixed the problem. Actually i don't get a compile error on windows.
>>
>> Can you retry please?
> try with 1.027 dmd to compile  dwt-linux-e0ffca35fe59,dwt-linux-cf2672c3e4fb,dwt-linux-08789b28bdf3
> in all case now get ets/TypedListener.d dwt/widgets/Widget.d -oflibDD-dwt.a
> 
> dwt/DWTError.d(145): Error: undefined identifier info
> dwt/DWTError.d(145): Error: cannot infer type for msg
> dwt/DWTError.d(150): Error: no property 'info' for type 'object.Exception'
> dwt/DWTError.d(150): Error: cannot infer type for msg
> dwt/DWTException.d(135): Error: undefined identifier info
> dwt/DWTException.d(135): Error: cannot infer type for msg
> dwt/DWTException.d(140): Error: no property 'info' for type 'object.Exception'
> dwt/DWTException.d(140): Error: cannot infer type for msg
> then lots more not getting past yet still working get pssed soon

this is a clear indication that you are using a tango version, which is too old. Either use tango 0.99.5 or tango from svn trunk rev 3145 and older. The 0.99.5 release is prefered.
March 09, 2008
Frank Benoit Wrote:

> Rusty schrieb:
> > Frank Benoit Wrote:
> > 
> >> Rusty schrieb:
> >>> Compiler complain on line 595
> >>> int s = value.lastIndexOf(' ');
> >>> whats the problem
> >> Yesterday i did some edits in dwt.dwthelper.utils to sync it with dwt-linux. Perhaps that fixed the problem. Actually i don't get a compile error on windows.
> >>
> >> Can you retry please?
> > try with 1.027 dmd to compile  dwt-linux-e0ffca35fe59,dwt-linux-cf2672c3e4fb,dwt-linux-08789b28bdf3
> > in all case now get
> > ets/TypedListener.d dwt/widgets/Widget.d -oflibDD-dwt.a
> > 
> > dwt/DWTError.d(145): Error: undefined identifier info
> > dwt/DWTError.d(145): Error: cannot infer type for msg
> > dwt/DWTError.d(150): Error: no property 'info' for type 'object.Exception'
> > dwt/DWTError.d(150): Error: cannot infer type for msg
> > dwt/DWTException.d(135): Error: undefined identifier info
> > dwt/DWTException.d(135): Error: cannot infer type for msg
> > dwt/DWTException.d(140): Error: no property 'info' for type 'object.Exception'
> > dwt/DWTException.d(140): Error: cannot infer type for msg
> > then lots more
> > not getting past yet still working get pssed soon
> 
> this is a clear indication that you are using a tango version, which is too old. Either use tango 0.99.5 or tango from svn trunk rev 3145 and older. The 0.99.5 release is prefered.


yes thanks I got newer and compiles library now-3 days wow!