User forums > Help
Codeblocks - D Language - DMD 1.00 + DUIT?
codemania:
Hi!
I have installed D Language with codeblocks, It works well on XP but only with prompt window
(I have installed D Language on C:\dmd\ and C:\dm\)
Now I would like to use "D" with DUIT (a wrapper of Gtk+ for "D").
I installed "GTK+ 2 Runtime Environment" --> http://gimp-win.sourceforge.net/stable.html
I Unziped Duit to c:\
When I compile the file HelloWorld.d on c:\duit\demo\gtk, It gives me 1 error: "Module MainWindow cannot read the file "gtk\MainWindow.d"
HelloWorld.d
--- Code: ---module gtk.HelloWorld;
private import gtk.MainWindow;
private import gtk.Label;
private import gtk.Duit;
class HelloWorld : MainWindow
{
this()
{
super("Duit");
add(new Label("Hello World"));
showAll();
}
}
private import lib.Loader;
void main(char[][] args)
{
Linker.dumpFailedLoads();
Duit.init(args);
new HelloWorld();
Duit.main();
}
--- End code ---
My "Global Compiler setting":
Linker - phobos.lib
Directories - compiler -> C:\dmd\src\phobos
Directories - linker -> C:\dmd\lib
-> C:\dmd\bin
Directories - Resource compiler -> C:\dmd\Includes
Help me please
Thanks
Mania
TDragon:
I know next to nothing about D, but I suspect you need to add whichever DUIT directory contains "gtk\MainWindow.d" to the compiler directories in your build options.
stahta01:
Link to download DUIT
http://svn.dsource.org/projects/dui/downloads/duit.tar.gz
I am downloading it now, along with lots of CVS wxWidgets updates, will be a while before I can test it.
(working on testing various versions of wxWidgets to see when wxWidgets fix/bug changed)
Tim S
stahta01:
--- Quote from: codemania on January 16, 2007, 10:14:45 pm ---I installed "GTK+ 2 Runtime Environment" --> http://gimp-win.sourceforge.net/stable.html
--- End quote ---
I got my GTK+ files from two different sites, I believe the one above was one of them.
I got my devel files from here if I recall correctly.
gtk+-win32-devel : 2.10
http://gladewin32.sourceforge.net/modules/wfdownloads/viewcat.php?cid=14
I then tried to merger them, I have yet to use my install so it might not work.
I just was not sure if DUIT needs the devel files to work.
Tim S
codemania:
I have compiled a test default (without codeblocks) with GTK+ Runtime environment. It gives me an exe "DuitTest.exe" and works ok.
I have inserted C:\dmd\bin;C:\dm\bin and C:\Program Files\Common Files\GTK\2.0\bin on variable environment on control panel.
But I would like to work "Duit" with codeblocks.
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version