Thread overview | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 28, 2012 DMD build | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger Attachments:
| 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu Attachments:
| 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicolas Sicard | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | 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 Re: DMD build | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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 |
Copyright © 1999-2021 by the D Language Foundation