On 06/01/2013 11:19 PM, Russel Winder wrote:
I cloned PyD – I have been intending to do this for ages to try D for
Python extensions – and ran make in the directory you mentioned:
|> make
gcc -c -fPIC so_ctor.c -o so_ctor.o
dmd -unittest -fPIC -defaultlib=libphobos2.so -shared test1.d
boilerplate.d so_ctor.o -oflibtest1.so
#dmd -c -unittest -fPIC test1.d boilerplate.d -oftemp.o
#dmd -shared -defaultlib=phobos2so temp.o so_ctor.o
-oflibtest1.so
gcc test1.c `pwd`/libtest1.so -o test1.x
./test1.x
initing
yawn. stretch.
lets test this donut.
foo(2)=6
dniting
yawn. zzzzz
who packages your dmd?