[Issue 6019] Phobos imports in autogenerated .di header files break implicit linking with DLLs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 2 05:08:45 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=6019


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu


--- Comment #10 from Martin Nowak <code at 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: -------


More information about the Digitalmars-d-bugs mailing list