<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Jan, <div class=""><br class=""></div><div class="">Could you test with the file renamed as « <a href="http://prog.cc" class="">prog.cc</a> »? I remember that gcc is picky about the extension.</div><div class=""><br class=""></div><div class="">Jean</div><div class=""> </div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 2 juil. 2017 à 12:28, Jan Stary <<a href="mailto:hans@stare.cz" class="">hans@stare.cz</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">This is MacOSX 10.6.8 running various compilers provided by MacPorts.<br class="">Compiling the following C++ source<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>#include <cmath><br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>int main(void)<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span>double d = std::log2(2.3456789f);<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span>return 0;<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span>}<br class=""><br class="">results in<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>'log2' is not a member of 'std'.<br class=""><br class="">This happens with the system g++, which is i686-apple-darwin10-g++-4.2.1,<br class="">each of g++-4.0 g++-4.2 g++-mp-5 g++-mp-6, and with clang++-mp-3.4;<br class="">in each case, I am compiling as $CXX -std=c++11 prog.c<br class=""><br class="">Apparently, there is some relatively recent turmoil about the C++ libs;<br class="">I don't know much c++ but find myself compiling some third party C++ code.<br class="">Am I missing something obvious?<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>Jan<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>