GtkD nothing

FoxyBrown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 5 17:51:40 PDT 2017


  import gtk.MainWindow;
  import gtk.Label;
  import gtk.Main;
  import std.stdio;

  pragma(lib, "C:\\DLang\\GtkD\\x86\\gtkd.lib");
  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();
      getchar();
  }


Did all the steps, had to switch over from the 64-bit to the 
32-bit dll of gtk+ to avoid errors(since i couldn't get gtkD to 
compile for 64-bit).

The above code(copied from site) simply runs and exists, I added 
the getchar but it doesn't seem to be executed. a BP on the first 
line is never reached, no errors, nothing, to help diagnose the 
issues.


Any ideas?


More information about the Digitalmars-d-learn mailing list