www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - module definition files and dll export

reply "Adam D. Ruppe" <destructionator gmail.com> writes:
Is there a way to skip writing the exports section and using a 
.def file when doing a DLL on Windows now?

And if not, will/can DIP45 allow that?
Dec 19 2013
next sibling parent Martin Nowak <code dawg.eu> writes:
On 12/19/2013 09:55 PM, Adam D. Ruppe wrote:
 Is there a way to skip writing the exports section and using a .def file
 when doing a DLL on Windows now?

 And if not, will/can DIP45 allow that?
I'm no Windows expert but I think you can always export symbols using a .def file. It's simply a matter of the linker understanding .def files.
Dec 19 2013
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 12/19/13, Adam D. Ruppe <destructionator gmail.com> wrote:
 Is there a way to skip writing the exports section and using a
 .def file when doing a DLL on Windows now?

 And if not, will/can DIP45 allow that?
Not sure if you mean avoiding using the EXPORTS section in a .def file, or if you want to avoid using export declarations in code? (they're alternatives to each other).
Dec 20 2013