Jump to page: 1 2 3
Thread overview
DMD build
Dec 28, 2012
Russel Winder
Dec 28, 2012
Jacob Carlborg
Dec 28, 2012
Nicolas Sicard
Dec 28, 2012
Jacob Carlborg
Dec 28, 2012
David Nadlinger
Dec 28, 2012
Russel Winder
Dec 28, 2012
Russel Winder
Dec 28, 2012
Jacob Carlborg
Dec 28, 2012
Walter Bright
Dec 28, 2012
John Colvin
Dec 28, 2012
Brad Roberts
Dec 29, 2012
Daniel Murphy
Dec 29, 2012
Marco Nembrini
Dec 29, 2012
Jonathan M Davis
Dec 29, 2012
Bernard Helyer
Dec 29, 2012
Jacob Carlborg
Dec 30, 2012
Martin Nowak
Dec 29, 2012
Rob T
Dec 29, 2012
Rob T
Dec 29, 2012
Mike Wey
Dec 28, 2012
Jacob Carlborg
December 28, 2012
Is there a reason for using g++ to compile and link the C code of DMD?

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 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


December 28, 2012
On 2012-12-28 16:18, Russel Winder wrote:
> Is there a reason for using g++ to compile and link the C code of DMD?

As far as I know it doesn't work with Clang. Did you have any other compiler in mind?

-- 
/Jacob Carlborg
December 28, 2012
On Friday, 28 December 2012 at 15:18:17 UTC, Russel Winder wrote:
> Is there a reason for using g++ to compile and link the C code of DMD?

DMD is actually written in C++, Walter just chose file names ending in .c for some strange reason.

David
December 28, 2012
On Fri, 2012-12-28 at 16:30 +0100, David Nadlinger wrote:
> On Friday, 28 December 2012 at 15:18:17 UTC, Russel Winder wrote:
> > Is there a reason for using g++ to compile and link the C code of DMD?
> 
> DMD is actually written in C++, Walter just chose file names ending in .c for some strange reason.

I can understand using C++ rather than C, but (sorry Walter) naming the files X.c is a f###### stupid idea. The standard name strategy is one of X.C, X.cc, or X.cpp, for very good reasons.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 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


December 28, 2012
On 12/28/12 10:51 AM, Russel Winder wrote:
> On Fri, 2012-12-28 at 16:30 +0100, David Nadlinger wrote:
>> On Friday, 28 December 2012 at 15:18:17 UTC, Russel Winder wrote:
>>> Is there a reason for using g++ to compile and link the C code
>>> of DMD?
>>
>> DMD is actually written in C++, Walter just chose file names
>> ending in .c for some strange reason.
>
> I can understand using C++ rather than C, but (sorry Walter) naming the
> files X.c is a f###### stupid idea.

From the HSP (Holiday Spirit Police):

s/f###### stupid/odd/


Andrei
December 28, 2012
On Fri, 2012-12-28 at 11:27 -0500, Andrei Alexandrescu wrote: […]
>  From the HSP (Holiday Spirit Police):

It is holiday, I have spirit, 44.55 to be precise. I shall go and imbibe :-)

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 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


December 28, 2012
On Friday, 28 December 2012 at 15:29:58 UTC, Jacob Carlborg wrote:
> On 2012-12-28 16:18, Russel Winder wrote:
>> Is there a reason for using g++ to compile and link the C code of DMD?
>
> As far as I know it doesn't work with Clang. Did you have any other compiler in mind?

Actually it works with Clang (v4.5), albeit with many warnings. Just pass HOST_CC=clang++ to the makefile.
December 28, 2012
On 2012-12-28 18:12, Nicolas Sicard wrote:

> Actually it works with Clang (v4.5), albeit with many warnings. Just
> pass HOST_CC=clang++ to the makefile.

I see, thanks.

-- 
/Jacob Carlborg
December 28, 2012
On 2012-12-28 16:30, David Nadlinger wrote:

> DMD is actually written in C++, Walter just chose file names ending in
> .c for some strange reason.

Oh, he means like that. That's kind of strange.

-- 
/Jacob Carlborg
December 28, 2012
On 2012-12-28 17:27, Andrei Alexandrescu wrote:

> From the HSP (Holiday Spirit Police):
>
> s/f###### stupid/odd/

I agree with Russel in this case.

-- 
/Jacob Carlborg
« First   ‹ Prev
1 2 3