How to build program with DWT2 and DMD2?

JohnnyK johnnykinsey at comcast.net
Wed Aug 7 10:03:21 PDT 2013


On Wednesday, 7 August 2013 at 15:42:32 UTC, Jacob Carlborg wrote:
> On 2013-08-07 16:04, JohnnyK wrote:
>
>> Well now I get these errors
>>
>> C:\Users\<myusername>\Documents\My
>> Projects\Programming\DStuff\dwthelloworld>rdmd -I
>> C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src
>> -IC:\GITClones\dwt\base\src
>>  hello.d
>> C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need 
>> -Jpath
>> switch to im
>> port text file org.eclipse.swt.internal.SWTMessages.properties
>> C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
>
> Forgot about the -J flag. Add:
>
> -JC:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\res
>
> To the result of the flags (before hello.d).


Still no love for me from DWT :(

C:\Users\<myusername>\Documents\My 
Projects\Programming\DStuff\dwthelloworld>rdmd -I
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src 
-IC:\GITClones\dwt\base\src
  -JC:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\res hello.d
OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
olepro32.lib
  Warning 2: File Not Found olepro32.lib
oleacc.lib
  Warning 2: File Not Found oleacc.lib
usp10.lib
  Warning 2: File Not Found usp10.lib
msimg32.lib
  Warning 2: File Not Found msimg32.lib
opengl32.lib
  Warning 2: File Not Found opengl32.lib
shlwapi.lib
  Warning 2: File Not Found shlwapi.lib
dwt-base.lib
  Warning 2: File Not Found dwt-base.lib
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _CreateStdAccessibleObject at 16
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _LresultFromObject at 12
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _TransparentBlt at 44
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _AlphaBlend at 44
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptFreeCache at 4
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptCPtoX at 36
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptTextOut at 56
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptJustify at 24
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptLayout at 16
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptGetLogicalWidths at 28
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptBreak at 16
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptShape at 40
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptGetFontProperties at 12
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptGetCMap at 24
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptPlace at 36
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptStringFree at 4
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptStringOut at 32
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptStringAnalyse at 52
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptApplyDigitSubstitution at 12
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptRecordDigitSubstitution at 8
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptItemize at 28
C:\Users\<myusername>\AppData\Local\Temp\.rdmd\rdmd-hello.d-096034CD5310F89CCCDCE879
E0E32294\objs\hello.obj(hello)
  Error 42: Symbol Undefined _ScriptGetProperties at 8
--- errorlevel 22

C:\Users\<myusername>\Documents\My 
Projects\Programming\DStuff\dwthelloworld>

It looks to be unable to find the static libs now.  How do people 
use this library?  Do they work in the dwt folder and just use 
that build.d file to compile with?  Again I would like to know 
the layout of a typical programmers workstation that uses DWT for 
the GUI parts of their application?  Is anyone using DWT today?
I appreciate all your help Jacob but I didn't think it would be 
this hard or take this long just to build and compile a program 
that just shows a window.  Has anyone ever tried to install D and 
DWT on a virgin machine then start a clean project to build a 
simple application like this before?  Maybe there is something I 
need to add to my PATH environment variable or something like 
that which would make this easier?  The command line is longer 
than the code I am trying to compile at this point.


More information about the Digitalmars-d-dwt mailing list