我正在使用相当新的Visual C++ 2008 Express安装。在我的math.h中找不到log2?
我试图编译一个使用log2函数的程序,该函数是通过在Mac上包含使用Eclipse找到的,但此Windows计算机找不到该函数(错误C3861:'log2':标识符未找到)。
我理解它的方式,include目录是特定于IDE的,对吗? math.h不存在于我的Microsoft SDKs \ Windows \ v6.0A \ Include \目录中,但是我在此目录中找到了一个math.h:Microsoft Visual Studio 9.0 \ VC \ include。在那个目录中还有一个cmath ...
log2在哪里?
很多更好的答案[这里](http://stackoverflow.com/questions/994593/how-to-do-an-integer-log2-in-c) – bobobobo 2013-02-14 17:50:35