[Issue 16546] ordering of modules matters for pragma(lib) on linux
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Sep 26 12:04:50 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16546
Timothee Cour <timothee.cour2 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timothee.cour2 at gmail.com
--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
clarification:
module mod1;
pragma(lib,"foo");
module mod2;
pragma(lib,"bar");
module main;
version(v1){
import mod1;
import mod2;
}
else{
import mod2;
import mod1;
}
rdmd -version=v1 main.d;//ok
rdmd main.d;//undefined symbol (when foo depends on bar)
--
More information about the Digitalmars-d-bugs
mailing list