[Issue 9816] Export is mostly broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 00:45:28 PDT 2013


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



--- Comment #25 from Benjamin Thaut <code at benjamin-thaut.de> 2013-08-30 00:45:28 PDT ---
> That wouldn't work in the case where you create a DLL that both exports symbols
> and imports symbols from another DLL.

It would work. Because the command line switch to the compiler would specifiy a
module name, so it won't turn all 'export' into dllexport. E.g. if you build
phobos you would add "-export std" to the command line of the compiler. This
would turn all 'export' inside any of the std modules into dllexport. So this
would work very for DLLs that both export and import symbols. For dllimport
there would be a equivalent command line switch e.g. "-import std" which needs
to be specified when linking against a shared phobos library. These command
line switches could then be added to the default sc.ini so users don't have to
specify them manually.

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