-
Notifications
You must be signed in to change notification settings - Fork 71
Hello World Example on Ubuntu 19.10 (Linux)
Feldwor edited this page May 13, 2020
·
1 revision
sudo snap install --classic dmd
sudo snap install dub
touch "HelloWorld.d"
#!/usr/bin/env dub
/+ dub.sdl:
name "hello"
dependency "gtk-d" version="*"
+/
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();
}
dub HelloWorld.d