<div dir="ltr">On Thu, Mar 6, 2014 at 6:24 PM, Omid <span dir="ltr"><<a href="mailto:omidlink@gmail.com" target="_blank">omidlink@gmail.com</a>></span> wrote:<div>...<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>> I thought the reason could be that the gcc compiler is too old (4.4.6)<br>
>> and may not support some of the newer language features (like new). I<br>
>> installed the latest stable gcc (4.8.2) and tried instructing ccmake<br>
>> to use the new gcc using<br>
>><br>
>> env CC=$(which gcc) CXX=$(which gcc) ccmake .<br>
>><br>
>> or<br>
>><br>
>> CC=$(which gcc) CXX=$(which gcc) ccmake .<br>
>><br>
>> where $(which gcc) returns the path to the new gcc. But the output and<br>
>> the errors are still the same (referring to gcc 4.4.6). It looks like<br>
>> the new gcc is not picked up by ccmake. Doing a find grep, I don't<br></blockquote><div>... </div><div><br></div><div>Is this in a new build directory? CMake won't overwrite the CMAKE_CXX_COMPILER an CMAKE_C_COMPILER variables it picked up the first time.</div>
<div><br></div></div></div></div></div>