www.digitalmars.com         C & C++   DMDScript  

D - Doc on Win dll

reply "Lars Ivar Igesund" <larsivi stud.ntnu.no> writes:
It seems to me that the documentation on how to
create dll's on windows are unnecessary complex.
A very simple test seems to show that the def
file isn't needed as long as the symbols use the
'export' attribute. Since it is much simpler to
export the functions where they are instead of
in a def-file, I don't understand why the doc's
don't reflect this.

Are there any pitifalls with 'export' compared to
using .def-files?

Lars Ivar Igesund
Oct 15 2003
parent "Walter" <walter digitalmars.com> writes:
"Lars Ivar Igesund" <larsivi stud.ntnu.no> wrote in message
news:bmiu5s$24aa$1 digitaldaemon.com...
 It seems to me that the documentation on how to
 create dll's on windows are unnecessary complex.
 A very simple test seems to show that the def
 file isn't needed as long as the symbols use the
 'export' attribute. Since it is much simpler to
 export the functions where they are instead of
 in a def-file, I don't understand why the doc's
 don't reflect this.

 Are there any pitifalls with 'export' compared to
 using .def-files?
I don't think there are. The two methods are equivalent.
Oct 15 2003