'powf' is not a member of 'std'

Hi, I have this error in a library that I have to compile for Xcode. <cmath> is included.

Can someone explain to me what is going wrong?

Thank.

+5
source share
3 answers

powfis Microsoft-ism . It does not appear at all in the ISO standard, so it is unlikely to be in Xcode if they do not adapt the unusual practices of Microsoft, which I think is unlikely.

pow, on the other hand, is part of the C ++ library due to the fact that part of the C library is included in C ++. Use this instead.

+10
source

Use only pow- powfnot standard.

+3

It is called std::powand overloaded for floatand double.

+2
source

All Articles