Thread overview
Cannot read Display .d > compiling hello.d
Mar 14, 2014
Jack
Mar 15, 2014
Jacob Carlborg
Mar 23, 2014
Jack
Mar 24, 2014
Jack
March 14, 2014
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.

Thank you.
March 15, 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
March 23, 2014
On Saturday, 15 March 2014 at 11:06:43 UTC, Jacob Carlborg wrote:
> 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

Thanks it worked. Now, I am trying to set the settings to integrate DWT in Code::Blocks and I have no idea to where I can set the -JPath, do you have a n idea where? Anyway, Thanks for your hard work...
March 24, 2014
On Sunday, 23 March 2014 at 13:46:31 UTC, Jack wrote:
> On Saturday, 15 March 2014 at 11:06:43 UTC, Jacob Carlborg wrote:
>> 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
>
> Thanks it worked. Now, I am trying to set the settings to integrate DWT in Code::Blocks and I have no idea to where I can set the -JPath, do you have a n idea where? Anyway, Thanks for your hard work...

Nvm. I found a way...