[Issue 14828] duplicate symbol __ModuleInfoZ depending on ordering of files passed to dmd

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 30 10:22:18 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14828

--- Comment #9 from Timothee Cour <timothee.cour2 at gmail.com> ---
(In reply to Martin Nowak from comment #8)
> (In reply to Timothee Cour from comment #3)
> > Is the root cause a symbol that should've been a weak symbol?
> 
> ModuleInfos aren't weak symbols.
> You didn't past the error message. Which ModuleInfo is duplicated?
> I guess it's either foo2 or main.


duplicate symbol _D4foo212__ModuleInfoZ in:
    out.o
    libproj6.a(foo2.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--


More information about the Digitalmars-d-bugs mailing list