On Thursday, 11 January 2018 at 18:56:23 UTC, Benjamin Thaut
wrote:
Am 11.01.2018 um 05:10 schrieb Domain:
[...]
As I said in the first post, I'm not interrested in linker
errors due to missing 'export' annotation.
std.experimental.logger does not have an export annotations and
therefor will cause linker errors. If you absolutely must use
std.experimental.logger you will have to annotate it with
'export' and recompile phobos. The idea behind my initial PR is
to build in basic support for dlls, not to fully annotate all
of phobos with 'export'.
[...]
Your command line is wrong. You are missing the -useshared
option and therefore your dlls / executable don't share the
same version of druntime.
[...]
How can you get the output of your program if it fails to link?
I misunderstand what you mean. I thought -useshared is used when
I want to use phobos as a dll.