September 26, 2016 [Issue 16546] ordering of modules matters for pragma(lib) on linux | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16546 Timothee Cour <timothee.cour2@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timothee.cour2@gmail.com --- Comment #1 from Timothee Cour <timothee.cour2@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) -- |
July 05, 2017 [Issue 16546] ordering of modules matters for pragma(lib) on linux | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16546 Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Hardware|x86 |All Resolution|--- |WONTFIX OS|Linux |All --- Comment #2 from Vladimir Panteleev <dlang-bugzilla@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"); -- |
Copyright © 1999-2021 by the D Language Foundation