On 19-04-18 22:27, Marc wrote:

I have no clue why, but when I use ldc2 instead of dmd it works without problems. gdc unfortunately drops some other errors.

So the correct command to compile the example is:

ldc2 hello.d -v `pkg-config --cflags --libs gtkd-3`

Yes, unfortunately the different compilers are not binary compatible, so
both the library and the application need to be compiled with the same
compiler.