GtkD nothing

FoxyBrown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 5 18:03:11 PDT 2017


On Thursday, 6 July 2017 at 00:51:40 UTC, FoxyBrown wrote:
>  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?

Running it from the command line showed it wasn't finding the gtk 
dll. The path variable is set up correctly. I copied the bin dir 
to the exe and it ran and worked except for missing icons. Why is 
gtkD not finding gtk+ even though it is clearly in the path and 
correct?



More information about the Digitalmars-d-learn mailing list