I downloaded and installed C::B on Ubuntu 8.10. I downloaded and installed the gtkD library using make and sudo make install. I linked in the gtkD library (libgtkd.a) in C::B under Project > Build Options > Linker Settings and added the gtkD folder to the Project > Build Options > Search directories > Compiler, Linker, and Resource Compiler tabs.
It didn't work at first, but then I linked in libdl.a and libc.a - it now compiles with the warning:
Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
It runs, but in the terminal, it reads:
I have installed the glibc-source under the synaptic package manager in Ubuntu. What am I missing? Here's the code I am trying to run (it is an example from the gtkD Dsource website):
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main(char[][] args)
{
Main.init(args);
MainWindow win = new MainWindow("Hello World");
win.setDefaultSize(200, 100);
win.add(new Label("Hello World"));
win.showAll();
Main.run();
}