How to build program with DWT2 and DMD2?

Jacob Carlborg doob at me.com
Tue Aug 6 04:32:28 PDT 2013


On 2013-08-02 19:50, JohnnyK wrote:

> Thanks Jacob for the response but that did not work :-(  Below is what I
> get when I compile your hello world example above.
>
>
> C:\Users\<myusername>\Documents\My
> Projects\Programming\DStuff\dwthelloworld>rdmd hello.d -IC:\GITClones\dwt
> hello.d(3): Error: module Display is in file
> 'org\eclipse\swt\widgets\Display.d'
>   which cannot be read
> import path[0] = .
> import path[1] = C:\D\dmd2\windows\bin\..\..\src\phobos
> import path[2] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
> Failed: "dmd" "-v" "-o-" "hello.d" "-I."

If you have cloned the git repository into C:\GITClones\dwt you should 
compile it like this:

rdmd hello.d -IC:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src 
-IC:\GITClones\dwt\base\src

Also make sure you cloned the repository using "git clone --recursive". 
This will clone the submodules as well.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-dwt mailing list