<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 11:20 PM, Ali Çehreli <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 05/11/2015 10:23 AM, Timothee Cour via Digitalmars-d wrote:<br>
<br>
> I notice CC is set to 'g++' in posix.mak which is untypical (instead<br>
> of gcc for example)<br>
<br></span>
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.<br>
<br>
Ali<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">That seems like a hacky patch to fix issue with wrong extension.</div><div class="gmail_extra">why not use this: 'g++ <span style="color:rgb(0,0,0);white-space:pre-wrap">-x c++ ' (ie treats input file as c++)</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap">That looks cleaner than assigning CC=g++</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap"> </span></div></div>