-allinst and linker errors
Anonymouse
asdf at asdf.net
Wed Jul 25 15:56:50 UTC 2018
I'm trying to build my project with -allinst, after reading the
comments of issue 18026[1]. Manjaro/Arch 64-bit, dmd 2.081.1 and
ldc 1.0.0.
I get a wall of text with linker errors, both with dmd and ldc.
Demangled excerpt:
> characterencodings.o: In function `pure nothrow @nogc @safe
> void
> std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref char)':
> source/kameloso/uda.d:(.text.pure nothrow @nogc @safe void
> std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref char)[pure nothrow @nogc @safe void std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, ref char)]+0x14): undefined reference to `pure nothrow @nogc @safe void std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S.put(char)'
> characterencodings.o: In function `pure nothrow @nogc @safe
> void
> std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char)':
> source/kameloso/uda.d:(.text.pure nothrow @nogc @safe void
> std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char)[pure nothrow @nogc @safe void std.range.primitives.doPut!(std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char).doPut(ref std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S, char)]+0x14): undefined reference to `pure nothrow @nogc @safe void std.format.hasToString!(std.datetime.systime.SysTime, char).__lambda2().S.put(char)'
> [...]
Full output: https://pastebin.com/raw/zX5ua1BT
What can I do?
[1]: https://issues.dlang.org/show_bug.cgi?id=18026#c17
More information about the Digitalmars-d-learn
mailing list