dmd 2.063 released with 260 bugfixes and enhancements
Russel Winder
russel at winder.org.uk
Sat Jun 1 23:19:46 PDT 2013
On Sat, 2013-06-01 at 09:36 -0700, Ellery Newcomer wrote:
> On 06/01/2013 02:31 AM, Russel Winder wrote:
> > On Fri, 2013-05-31 at 13:50 -0700, Ellery Newcomer wrote:
> > […]
> >> just tried it on ubuntu 12.10, and it does the same.
> >>
> >> are you using -defaultlib=libphobos2.so
> >
> > I suspect I may be doing different things from you as I never use an
> > option of that sort. Perhaps we should agree a code and command to make
> > the tests.
> >
>
> the way I build is detailed in the makefile here:
>
> https://bitbucket.org/ariovistus/pyd/src/296ef002750411331ec9a3bcb14aed345b65d8d5/examples/misc/dmd_sharedlibs?at=default
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
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20130602/9cb3e363/attachment.pgp>
More information about the Digitalmars-d-announce
mailing list