Cannot read Display .d > compiling hello.d

Jacob Carlborg doob at me.com
Sat Mar 15 04:06:43 PDT 2014


On 2014-03-14 06:34, Jack wrote:
> First of all, I'm just a very novice programmer that wants to learn. I
> have very minimal knowledge of build paths, compilers, libraries,
> linkers etc... So please forgive my ignorance.
>
> I successfully built the dwt base with rdmd and tried to compile the
> hello world. And then this happened:
>
> http://pastebin.com/xUaDmjxf
>
> Sorry for having this noobish question when it should've been plain
> common sense for someone like me, but I can't really find anything
> related to my issue on Google or on the forums.

The compiler tries to find "org\eclipse\swt\widgets\Display.d" relative 
to where you invoke the compiler, in this case "C:\Users\J\Desktop". You 
need to add the DWT directory to the imports path using the -I flag. 
Please follow the instructions here [1], if that doesn't work then let 
me know.

[1] https://github.com/d-widget-toolkit/dwt#building-hello-world

-- 
/Jacob Carlborg


More information about the Digitalmars-d-dwt mailing list