std::log2 not in c++11 on 10.6 BuiltBot?

Mihai Moldovan ionic at macports.org
Wed Apr 22 13:02:56 PDT 2015


On 22.04.2015 09:51 PM, Michael Dickens wrote:
> One of my ports won't build on the 10.6 buildbot, because it claims the
> following (snipped for brevity):
> {{{
> /opt/local/bin/g++-mp-4.9 [snip] -std=c++11 -o FILE.cc.o -c FILE.cc
> FILE.cc: In constructor "FILE(std::vector<std::vector<float> >)":
> FILE.cc:46:54: error: "log2" is not a member of "std"
>                (unsigned)(((float)chip_seq[0].size())/std::log2((float)chip_seq.size()))),
> }}}
> 
> According to every source I've found, std::log2 should exist in c++11 --
> not before this, but as of c++11. The compiler goes on to suggest using
> just "double log2(double)"; whatever.
> 
> Anybody know what's going on here?

Is the code including cmath?



Mihai


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20150422/ed0e4f36/attachment.sig>


More information about the macports-dev mailing list