Hello,
I'm taking my first steps with D and Gtkd and tried to compile the hello world example from https://sites.google.com/site/gtkdtutorial, but when I try to compile the code, I get an linker error:
dmd -U/usr/include/d/gtkd-3 hello.d
hello.o:(.data.rel.ro+0x10): Warnung: undefinierter Verweis auf Ā»_D3gtk10MainWindow12__ModuleInfoZĀ«
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
I've installed gtkd 3.7.3 from the Fedora 27 repositories. dmd is version 2.079.0.
The sample code I used:
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();
}
Any ideas?