www.digitalmars.com         C & C++   DMDScript  

D - how to create a dll

reply Lloyd Dupont <lloyd galador.net> writes:
let's imagein I have a 'mydll.d' file.
how I create a DLL from it ?

I can't find... which LINK flag are used..
Nov 24 2002
parent reply Evan McClanahan <evan dontSPAMaltarinteractive.com> writes:
Lloyd Dupont wrote:
 let's imagein I have a 'mydll.d' file.
 how I create a DLL from it ?
 
 I can't find... which LINK flag are used..
There's a clear example of that in the D for windows page of the documentation. I'd suggest that you look there first, and then come back if you still have any questions. Evan
Nov 25 2002
parent reply "Lloyd Dupont" <lloyd galador.net> writes:
.... ??
the only example I found (in "D for win32" section) say what to write the
DllMain
but says nothing of the commands to invoke.

particularly how to link with a def file ?

for example in C with gcc I do:

'gcc -shared -o mydll.dll mydll.c'

to create a mydll.dll DLL file from a mydll.c file.


I have no idea what command line to invoke in D, and I didn't find the doc
either, could you, please, tell me in which section it is ?

"Evan McClanahan" <evan dontSPAMaltarinteractive.com> a écrit dans le
message de news: arsqb2$2dd2$1 digitaldaemon.com...
 Lloyd Dupont wrote:
 let's imagein I have a 'mydll.d' file.
 how I create a DLL from it ?

 I can't find... which LINK flag are used..
There's a clear example of that in the D for windows page of the documentation. I'd suggest that you look there first, and then come back if you still have any questions. Evan
Nov 25 2002
parent Evan McClanahan <evan dontSPAMaltarinteractive.com> writes:
Lloyd Dupont wrote:
 .... ??
 the only example I found (in "D for win32" section) say what to write the
 DllMain
 but says nothing of the commands to invoke.
 
 particularly how to link with a def file ?
 
 for example in C with gcc I do:
 
 'gcc -shared -o mydll.dll mydll.c'
 
 to create a mydll.dll DLL file from a mydll.c file.
 
 
 I have no idea what command line to invoke in D, and I didn't find the doc
 either, could you, please, tell me in which section it is ?
you have to include the def file in the complation command: dmd mydll mydll.def or something like that. It doesn't automatically go out and find the def file. Evan
Nov 25 2002