October 02, 2013 [Issue 6019] Phobos imports in autogenerated .di header files break implicit linking with DLLs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6019 Martin Nowak <code@dawg.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code@dawg.eu --- Comment #10 from Martin Nowak <code@dawg.eu> 2013-10-02 05:08:42 PDT --- Most declarations don't require linkage. The ones that do are module ctors/dtors (__ModuleInfoZ), classes (vtbl and classinfo) and anything that's non-zero initialized (__initZ), i.e. structs with non-zero initialized fields, enums with non-zero first member, char and maybe floats. BTW the same issue is present in deimos where you also want headers that don't require linkage. Maybe we can come up with a good idea how to solve this. How about this? Using weak undefined symbols to link against the imported ModuleInfo would result in null pointers during runtime. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 02, 2013 [Issue 6019] Phobos imports in autogenerated .di header files break implicit linking with DLLs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6019 --- Comment #11 from Martin Nowak <code@dawg.eu> 2013-10-02 08:51:30 PDT --- (In reply to comment #10) > How about this? Using weak undefined symbols to link against the imported ModuleInfo would result in null pointers during runtime. That could cause some issues with the weird multilibs. Not sure currently if every archive member references it's module's ModuleInfo. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation