www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Cannot read Display .d > compiling hello.d

reply "Jack" <Jackoz530 gmail.com> writes:
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.
Mar 13 2014
parent reply Jacob Carlborg <doob me.com> writes:
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
Mar 15 2014
parent reply "Jack" <Jackoz530 gmail.com> writes:
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...
Mar 23 2014
parent "Jack" <Jackoz530 gmail.com> writes:
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...
Mar 24 2014