我正在使用相當新的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