Hello everyone,<div>I know it'll sound a bit stupid but I'm having a very hard time trying to setup dmd with eclipse and gtkd.<br>I've only played with d and loved it soo much I decided to get the book but I want to apply everything from the book on a gui.</div>
<div>At home I use windows 7 and debian, windows 7 for programming. ultimately what I write should be compilable on both platforms without any modifications, thats why I think gtkd is the right chose as a gui liberary.</div>
<div><br></div><div>I went ahead and installed d with the dmd installer with all default options, I also installed eclipse and the ddt pluging.</div><div>One minor issue is that every library I add to the build path in eclipse don't really get added to the build path so I have to edit sc.ini manually. I don't know if thats a non-finished feature or my own fault but thats something I can live with.</div>
<div><br></div><div>Then comes a next obstacle, I don't want to use dsss for compiling as it seems abondoned and want to use dmd itself. however, when I add it to the build path and try to compile this:</div><div>"import gtk.MainWindow;</div>
<div>import gtk.Label;</div><div>import gtk.Main;</div><div><br></div><div>void main(string[] args)</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>Main.init(args);</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>MainWindow win = new MainWindow("Hello World");</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>win.setDefaultSize(200, 100);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>win.add(new Label("Hello World"));</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>win.showAll();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>Main.run();</div><div>}"</div><div><br></div><div>I get following output:</div>
<div>"OPTLINK (R) for Win32  Release 8.00.8</div><div>Copyright (C) Digital Mars 1989-2010  All rights reserved.</div><div><a href="http://www.digitalmars.com/ctg/optlink.html">http://www.digitalmars.com/ctg/optlink.html</a></div>
<div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk4Main12__ModuleInfoZ</div><div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk5Label12__ModuleInfoZ</div><div>
bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk10MainWindow12__ModuleInfoZ</div><div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk4Main4Main4initFAAyaZv</div>
<div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk10MainWindow10MainWindow7__ClassZ</div><div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk10MainWindow10MainWindow6__ctorMFAyaZC3gtk10MainWindow10MainWindow</div>
<div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk5Label5Label7__ClassZ</div><div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk5Label5Label6__ctorMFAyabZC3gtk5Label5Label</div>
<div>bin\just_a_test.obj(just_a_test) </div><div> Error 42: Symbol Undefined _D3gtk4Main4Main3runFZv</div><div>--- errorlevel 9"</div><div><br></div><div>and I got the same problems when trying to use dfl.</div><div>
Am I too stuborn? Have I misread some instructions? Does anyone has a working setup and can tell me how he did it?</div><div><br></div><div>oh and andrei, your book looks very good. I'm only a</div>