www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Re: How to create shared library on linux?

 On linux, DMD uses GCC as its linker so you'd just do something like...

 dmd file.d -L-ltest

 If I remember correctly. Or

 dmd -c file.d
 gcc file.o -o file -ltest

Thanks, it is right. I will try gdc to create shared library.
Aug 13 2006