Linkage runaround

Steve Teale via Digitalmars-d digitalmars-d at
Thu Mar 26 05:37:31 PDT 2015

If I link my DMD 2.066.1/ GtkD (latest version) app with static 
Phobos2 I get

Linking executable: ../bin/Debug/compo
../objdir/mainwin.o: In function 
/usr/include/dmd/druntime/import/core/runtime.d:233: undefined 
reference to `rt_loadLibrary'
collect2: ld returned 1 exit status

If I change the link spec to use, then the app 
links, and runs, but it crashes the first time I try to read 
something from a file with stream.File.readString.

Does this ring a bell with anyone.

More information about the Digitalmars-d mailing list