www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - shared-object libraries

reply Chick Corea <chick.zcorea gmail.com> writes:
Is it possible to build a shared-object library (dot so) with D ?  The
only instructions that I saw
for building a library are on these OS pages, e.g., for linux:

   http://www.digitalmars.com/d/2.0/dmd-linux.html#library

And they build static/archive libraries, not shared-object.

Thanks.

CHICKZ
Jun 18 2010
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2010-06-18 18:30, Chick Corea wrote:
 Is it possible to build a shared-object library (dot so) with D ?  The
 only instructions that I saw
 for building a library are on these OS pages, e.g., for linux:

     http://www.digitalmars.com/d/2.0/dmd-linux.html#library

 And they build static/archive libraries, not shared-object.

 Thanks.

 CHICKZ

It's currently not working on linux. There are people working on it. -- /Jacob Carlborg
Jun 19 2010
prev sibling next sibling parent Robert Clipsham <robert octarineparrot.com> writes:
On 18/06/10 17:30, Chick Corea wrote:
 Is it possible to build a shared-object library (dot so) with D ?  The
 only instructions that I saw
 for building a library are on these OS pages, e.g., for linux:

     http://www.digitalmars.com/d/2.0/dmd-linux.html#library

 And they build static/archive libraries, not shared-object.

 Thanks.

 CHICKZ

It's currently not possible with dmd as far as I'm aware. I've managed to get it working with ldc before now, and I've heard of people having success with gdc too. Robert
Jun 19 2010
prev sibling parent Chick Corea <chick.zcorea gmail.com> writes:
Thanks for the info, guys.

CHICKZ
Jun 21 2010