Skip to content

Instantly share code, notes, and snippets.

@rigibun
Created December 10, 2013 14:43
Show Gist options
  • Save rigibun/7891696 to your computer and use it in GitHub Desktop.
Save rigibun/7891696 to your computer and use it in GitHub Desktop.
# dmd, libphobos and libgtkd2 were installed by apt-get with d-apt.
% ls
HelloWorld.d
% dmd HelloWorld.d -L-lgtkd2 -L-ldl
% ./HelloWorld
Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.64':
The module 'std.algorithm' is already defined in './HelloWorld'.
zsh: segmentation fault ./HelloWorld
# HelloWorld.d is here. https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d
Copy link

ghost commented Mar 22, 2015

I have the same issue right now. Have you solved it?

Copy link

ghost commented Mar 22, 2015

Ah, got it, you need to link libphobos2.so as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment