www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD flags

reply Russel Winder <russel winder.org.uk> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

In C/C++, with f.c or f.cpp I can do:

	cc f.o -lncurses

something similar works for gdc, but what to write for dmd? Assuming f.d
obviously :-)

Thanks.

--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Sep 05 2012
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2012-09-05 13:59, Russel Winder wrote:
 In C/C++, with f.c or f.cpp I can do:

 	cc f.o -lncurses

 something similar works for gdc, but what to write for dmd? Assuming f.d
 obviously :-)

 Thanks.

GDC/GCC just forwards that flag to the linker, so: dmd f.d -L-lncurses -- /Jacob Carlborg
Sep 05 2012
prev sibling parent Russel Winder <russel winder.org.uk> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, 2012-09-05 at 14:04 +0200, Jacob Carlborg wrote:
[=E2=80=A6]
=20
 GDC/GCC just forwards that flag to the linker, so:
=20
 dmd f.d -L-lncurses

Hummm=E2=80=A6 I had thought of that but rejected it due to the word "flag" being drawn more towards GCC -L than -l. Anyway, used and working. Thanks. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 05 2012