Command Line Order + Linker Errors
Rainer Schuetze
r.sagitario at gmx.de
Fri Nov 23 23:52:13 PST 2012
On 10/29/2012 9:56 PM, dsimcha wrote:
> I'm running into some inexplicable linker errors when trying to compile
> a project. I've tried two command lines to compile the project that I
> thought were equivalent except for the names of the output files:
>
> // emptymain.d:
> void main(){}
>
> // test.d:
> unittest {
> double[double] weights = [1:1.2, 4:2.3];
> import std.stdio;
> writeln("PASSED");
> }
>
> dmd -unittest emptymain.d test.d // Linker errors
This should be fixed with
https://github.com/D-Programming-Language/dmd/pull/1313
>
> dmd -unittest test.d emptymain.d // Works
>
> Additionally, the linker errors only occur under a custom version of
> druntime. Don't try to reproduce them under the stock version. (For
> the curious, it's the precise heap scanning fork from
> https://github.com/rainers/druntime/tree/precise_gc2 . I'm trying to
> get precise heap scanning ready for prime time.)
Did you get further with scrutinizing it?
More information about the Digitalmars-d
mailing list