[Issue 16546] ordering of modules matters for pragma(lib) on linux
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 5 12:12:50 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=16546
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Hardware|x86 |All
Resolution|--- |WONTFIX
OS|Linux |All
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
As far as I can tell, I don't think a change in the language is needed. If you
wish to link against a library which has a dependency, then specify the
dependency in the same module. I.e. if in you example libbar depends on libfoo,
change mod2.d to:
module mod2;
pragma(lib,"foo");
pragma(lib,"bar");
--
More information about the Digitalmars-d-bugs
mailing list