www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D - how to create a dll

↑ ↓ ← 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
↑ ↓ 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
↑ ↓ "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
↑ ↓ → 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