2017-02-14 147 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); 

回答