2017-02-14 145 views
0

我想在使用MingW(msys2)在Windows上編譯程序,並且它與j0函數失敗。在Linux上它編譯沒有問題。當我在編譯器上使用-std = C++ 11標誌時,它似乎很討厭。我怎樣才能得到這個正確編譯和-std = C++ 11標誌?mingw C++不會編譯j0功能

樣品的編號:

#include <cmath> 


int main(int argc, char *argv[]) 
{ 
    float test = j0(5); 
} 

輸出

$ g++ -std=c++11 test.cpp -o test 
test.cpp: In function 'int main(int, char**)': 
test.cpp:6:21: error: 'j0' was not declared in this scope 
    float test = j0(5); 

回答