www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - build dwt-win pb

reply Bjoern <nanali nospam-wanadoo.fr> writes:
have pb to build dwt win. use tango rev 3152, dmd 1025, dwt-win snapshot 
/ error in dwterror. Ideas ?
dsss 0.75
WTError line : 146 undefined identifier info ... and so on

:* Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
  * are not provided in order to maintain compatibility with CLDC.
  * </p>
  */
public void printStackTrace () {
     Stderr.formatln( "stacktrace follows (if feature compiled in)" );
  ->   foreach( msg; info ){
         Stderr.formatln( "{}", msg );
     }
Feb 11 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Bjoern schrieb:
 have pb to build dwt win. use tango rev 3152, dmd 1025, dwt-win snapshot 
 / error in dwterror. Ideas ?
 dsss 0.75
 WTError line : 146 undefined identifier info ... and so on
 
 :* Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
  * are not provided in order to maintain compatibility with CLDC.
  * </p>
  */
 public void printStackTrace () {
     Stderr.formatln( "stacktrace follows (if feature compiled in)" );
  ->   foreach( msg; info ){
         Stderr.formatln( "{}", msg );
     }
I believe you have an older tango version as you think. May be there is a mistake in the include path, or an old copy in dsss. Or at least you use an old version of the object.di. In tango rev 3145 there was an update that removed the TracedException and added the functionality in Exception. With that, the Exception has an "info" member.
Feb 11 2008
next sibling parent reply Bjoern <nanali nospam-wanadoo.fr> writes:
Frank Benoit schrieb:
 Bjoern schrieb:
 have pb to build dwt win. use tango rev 3152, dmd 1025, dwt-win 
 snapshot / error in dwterror. Ideas ?
 dsss 0.75
 WTError line : 146 undefined identifier info ... and so on

 :* Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
  * are not provided in order to maintain compatibility with CLDC.
  * </p>
  */
 public void printStackTrace () {
     Stderr.formatln( "stacktrace follows (if feature compiled in)" );
  ->   foreach( msg; info ){
         Stderr.formatln( "{}", msg );
     }
I believe you have an older tango version as you think. May be there is a mistake in the include path, or an old copy in dsss. Or at least you use an old version of the object.di. In tango rev 3145 there was an update that removed the TracedException and added the functionality in Exception. With that, the Exception has an "info" member.
object.di was too old. I thought dsss takes care about it. Building the lib and simple.exe is working now. (Beside using tango rev. 3172) The resulting lib is called DD_dwt.lib Why ? Building the examples however not : Cannot read tango_sys_win32\types.d .... I have recognized that tango_sys_win32 is'nt part off dsss\include\dwt I guess thats the problem ... Bjoern
Feb 12 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
Bjoern schrieb:
 Frank Benoit schrieb:
 Bjoern schrieb:
 have pb to build dwt win. use tango rev 3152, dmd 1025, dwt-win 
 snapshot / error in dwterror. Ideas ?
 dsss 0.75
 WTError line : 146 undefined identifier info ... and so on

 :* Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
  * are not provided in order to maintain compatibility with CLDC.
  * </p>
  */
 public void printStackTrace () {
     Stderr.formatln( "stacktrace follows (if feature compiled in)" );
  ->   foreach( msg; info ){
         Stderr.formatln( "{}", msg );
     }
I believe you have an older tango version as you think. May be there is a mistake in the include path, or an old copy in dsss. Or at least you use an old version of the object.di. In tango rev 3145 there was an update that removed the TracedException and added the functionality in Exception. With that, the Exception has an "info" member.
object.di was too old. I thought dsss takes care about it. Building the lib and simple.exe is working now. (Beside using tango rev. 3172) The resulting lib is called DD_dwt.lib Why ? Building the examples however not : Cannot read tango_sys_win32\types.d .... I have recognized that tango_sys_win32 is'nt part off dsss\include\dwt I guess thats the problem ... Bjoern
tango_sys_win32 is gone, so this should work now. It does for me :) I added 2 new libs to the import lib zip file again (second time today). in dwt-win dsss build dwt dsss install dwt in dwt-samples dsss build -S"path-to-import-libs"
Feb 12 2008
prev sibling parent reply Bjoern <nanali nospam-wanadoo.fr> writes:
Frank Benoit schrieb:
 Bjoern schrieb:
 have pb to build dwt win. use tango rev 3152, dmd 1025, dwt-win 
 snapshot / error in dwterror. Ideas ?
 dsss 0.75
 WTError line : 146 undefined identifier info ... and so on

 :* Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter)
  * are not provided in order to maintain compatibility with CLDC.
  * </p>
  */
 public void printStackTrace () {
     Stderr.formatln( "stacktrace follows (if feature compiled in)" );
  ->   foreach( msg; info ){
         Stderr.formatln( "{}", msg );
     }
I believe you have an older tango version as you think. May be there is a mistake in the include path, or an old copy in dsss. Or at least you use an old version of the object.di. In tango rev 3145 there was an update that removed the TracedException and added the functionality in Exception. With that, the Exception has an "info" member.
Okay solved, incl. examples . old object.di, modified sc.ini Last problem : ControlExample can't find resource file... So do I;
Feb 12 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
 Okay solved, incl. examples . old object.di, modified sc.ini
 Last problem :
 ControlExample can't find resource file... So do I;
Meanwhile we do not need the resource file anymore. I fixed the dsss.conf of dwt-samples. Thx for report.
Feb 12 2008