www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - how to set up eclipse with ddt and gtkd with dmd the proper way?

--000e0cd2e352cf877a04a6890669
Content-Type: text/plain; charset=ISO-8859-1

Hello everyone,
I know it'll sound a bit stupid but I'm having a very hard time trying to
setup dmd with eclipse and gtkd.
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.
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.

I went ahead and installed d with the dmd installer with all default
options, I also installed eclipse and the ddt pluging.
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.

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:
"import gtk.MainWindow;
import gtk.Label;
import gtk.Main;

void main(string[] args)
{
Main.init(args);
MainWindow win = new MainWindow("Hello World");
win.setDefaultSize(200, 100);
win.add(new Label("Hello World"));
win.showAll();

Main.run();
}"

I get following output:
"OPTLINK (R) for Win32  Release 8.00.8
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk4Main12__ModuleInfoZ
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk5Label12__ModuleInfoZ
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk10MainWindow12__ModuleInfoZ
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk4Main4Main4initFAAyaZv
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk10MainWindow10MainWindow7__ClassZ
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined
_D3gtk10MainWindow10MainWindow6__ctorMFAyaZC3gtk10MainWindow10MainWindow
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk5Label5Label7__ClassZ
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined
_D3gtk5Label5Label6__ctorMFAyabZC3gtk5Label5Label
bin\just_a_test.obj(just_a_test)
 Error 42: Symbol Undefined _D3gtk4Main4Main3runFZv
--- errorlevel 9"

and I got the same problems when trying to use dfl.
Am I too stuborn? Have I misread some instructions? Does anyone has a
working setup and can tell me how he did it?

oh and andrei, your book looks very good. I'm only a

--000e0cd2e352cf877a04a6890669
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello everyone,<div>I know it&#39;ll sound a bit stupid but I&#39;m having =
a very hard time trying to setup dmd with eclipse and gtkd.<br>I&#39;ve onl=
y 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. ultimat=
ely what I write should be compilable on both platforms without any modific=
ations, 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 wit=
h 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 eclips=
e don&#39;t really get added to the build path so I have to edit sc.ini man=
ually. I don&#39;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&#39;t want to use dss=
s 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>&quot;im=
port 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=3D"Apple-tab-spa=
n" style=3D"white-space:pre">	</span>Main.init(args);</div><div><span class=
=3D"Apple-tab-span" style=3D"white-space:pre">	</span>MainWindow win =3D ne=
w MainWindow(&quot;Hello World&quot;);</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>win.s=
etDefaultSize(200, 100);</div><div><span class=3D"Apple-tab-span" style=3D"=
white-space:pre">	</span>win.add(new Label(&quot;Hello World&quot;));</div>=
<div>
<span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>win.showAl=
l();</div><div><br></div><div><span class=3D"Apple-tab-span" style=3D"white=
-space:pre">	</span>Main.run();</div><div>}&quot;</div><div><br></div><div>=
I get following output:</div>
<div>&quot;OPTLINK (R) for Win32 =A0Release 8.00.8</div><div>Copyright (C) =
Digital Mars 1989-2010 =A0All rights reserved.</div><div><a href=3D"http://=
www.digitalmars.com/ctg/optlink.html">http://www.digitalmars.com/ctg/optlin=
k.html</a></div>
<div>bin\just_a_test.obj(just_a_test)=A0</div><div>=A0Error 42: Symbol Unde=
fined _D3gtk4Main12__ModuleInfoZ</div><div>bin\just_a_test.obj(just_a_test)=
=A0</div><div>=A0Error 42: Symbol Undefined _D3gtk5Label12__ModuleInfoZ</di=
v><div>
bin\just_a_test.obj(just_a_test)=A0</div><div>=A0Error 42: Symbol Undefined=
 _D3gtk10MainWindow12__ModuleInfoZ</div><div>bin\just_a_test.obj(just_a_tes=
t)=A0</div><div>=A0Error 42: Symbol Undefined _D3gtk4Main4Main4initFAAyaZv<=
/div>
<div>bin\just_a_test.obj(just_a_test)=A0</div><div>=A0Error 42: Symbol Unde=
fined _D3gtk10MainWindow10MainWindow7__ClassZ</div><div>bin\just_a_test.obj=
(just_a_test)=A0</div><div>=A0Error 42: Symbol Undefined _D3gtk10MainWindow=
10MainWindow6__ctorMFAyaZC3gtk10MainWindow10MainWindow</div>
<div>bin\just_a_test.obj(just_a_test)=A0</div><div>=A0Error 42: Symbol Unde=
fined _D3gtk5Label5Label7__ClassZ</div><div>bin\just_a_test.obj(just_a_test=
)=A0</div><div>=A0Error 42: Symbol Undefined _D3gtk5Label5Label6__ctorMFAya=
bZC3gtk5Label5Label</div>
<div>bin\just_a_test.obj(just_a_test)=A0</div><div>=A0Error 42: Symbol Unde=
fined _D3gtk4Main4Main3runFZv</div><div>--- errorlevel 9&quot;</div><div><b=
r></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 worki=
ng setup and can tell me how he did it?</div><div><br></div><div>oh and and=
rei, your book looks very good. I&#39;m only a</div>

--000e0cd2e352cf877a04a6890669--
Jun 25 2011