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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 24 10:42:21 PDT 2011


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



--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-06-24 10:37:27 PDT ---
It seems another workaround for this is to create a dummy symbol in the module
that imports a header file, e.g.:

extern(C) int D3dll5mydll12__ModuleInfoZ;  // implicitly adds _ before the name

This fixes linker errors. However it has to be put in the module that imports
"dll.mydll", and not inside dll.mydll module itself as that creates some kind
of symbol clashes.

-- 
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