dmd build instructions from source don't work anymore

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Tue May 12 10:21:16 PDT 2015


On Mon, May 11, 2015 at 11:20 PM, Ali Çehreli <digitalmars-d at puremagic.com>
wrote:

> On 05/11/2015 10:23 AM, Timothee Cour via Digitalmars-d wrote:
>
> > I notice CC is set to 'g++' in posix.mak which is untypical (instead
> > of gcc for example)
>
> That is required because although all implementation files are C++, they
> have extension .c. If CC were gcc, it would assume C compilation.
> Therefore, g++ is needed to make it C++ compilation.
>
> Ali
>
>
That seems like a hacky patch to fix issue with wrong extension.
why not use this: 'g++ -x c++ ' (ie treats input file as c++)
That looks cleaner than assigning CC=g++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150512/365bf53a/attachment.html>


More information about the Digitalmars-d mailing list