Hi there ,  i have this code :
________________________________________________

import gtk.MainWindow, gtk.Label, gtk.Main;

class GoodbyeWorld : MainWindow {
    this() {
        super("GtkD");
        add(new Label("Goodbye World"));
        showAll();
    }
}

void main(string[] args) {
    Main.init(args);
    new GoodbyeWorld();
    Main.run();
}

________________________________________________

For this i have made a folder named GIT in the linux directory /usr/local/GIT
And Gitcloned in the GIT folder :
git clone https://github.com/nomad-software/x11
git clone https://github.com/nomad-software/tcltk.git
The clones are now in /usr/local/GIT/

When i start the upper code in a cmd the result is as follows :
___________________________________________________________________
$ dmd hw_graphical.d
hw_graphical.d(1): Error: module MainWindow is in file 'gtk/MainWindow.d' which cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import


What must be done that the code make a graphical window ?

I want to make the D programming tkd module ready for GUI programming.
Need a step by step advice for BEGINNERS in D programming.

Any Internetlink for step by step instructions how to arrange D and TK would be helpful !

WBR
MHE




Reply via email to