On 10-01-18 12:08, Russel Winder wrote:

I'll try the current code with a static compile and see if that changes things.

C and C++ code work with dynamic linking, is this a GtkD restriction?

There is a difference between using dlopen to load the libraries at
runtime and linking with the dynamic gtk libraries at compile time.

GtkD does the first and that causes the problems with GModule and
connectSignals, the later should work correctly.

GtkD uses dlopen due to historic reasons, gir-to-d does support
generating both options and at some point we should switch the default
we use for GtkD.