how to set up eclipse with ddt and gtkd with dmd the proper way?

maarten van damme maartenvd1994 at gmail.com
Sat Jun 25 06:09:21 PDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110625/678d9142/attachment.html>


More information about the Digitalmars-d mailing list