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

Mihai Moldovan ionic at macports.org
Wed Apr 22 14:27:23 PDT 2015


On 22.04.2015 10:39 PM, Michael Dickens wrote:
> Yes, the code includes cmathv (indirectly). This code works on the other
> buildbots; just not on the 10.6 one. Is 10.6's GCC 4.9 special somehow?
> Maybe I need to include cmath directly? - MLD

I can reproduce your problem in my 10.6 VM.

std::log2() is only defined if the internal macro __GLIBCXX_USE_C99_MATH_TR1 is defined.

This is not true for 10.6 (but for instance for 10.9.)

I do not know off-hand why this is not the case on 10.6. Maybe Google can help you to determine how/when this gets set?



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/fabb80ba/attachment-0001.sig>


More information about the macports-dev mailing list