www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Checking DateTime.d wont compile

reply Rusty <rustyn12 quick.com.nz> writes:
Compiler complain on line 595
int s = value.lastIndexOf(' ');
whats the problem
Mar 06 2008
next sibling parent reply Jesse Phillips <jessekphillips gmail.com> writes:
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?
Mar 06 2008
parent reply Rusty <rustyn12 quick.com.nz> writes:
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
Mar 06 2008
parent reply Jesse Phillips <jessekphillips gmail.com> writes:
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.
Mar 06 2008
parent Rusty <rustyn12 quick.com.nz> writes:
 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
Mar 07 2008
prev sibling parent reply Frank Benoit <keinfarbton googlemail.com> writes:
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?
Mar 07 2008
parent reply Rusty <rustyn12 quick.com.nz> writes:
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
Mar 08 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
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.
Mar 08 2008
parent Rusty <rustyn12 quick.com.nz> writes:
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!
Mar 09 2008