C++ APPCRASH on";标准:sin“;电话
我的开发电脑(英特尔i5、Windows 7 Pro SP1 64位、Visual Studio 2013社区)。简单的应用程序按预期工作C++ APPCRASH on";标准:sin“;电话,c++,hyper-v,C++,Hyper V,我的开发电脑(英特尔i5、Windows 7 Pro SP1 64位、Visual Studio 2013社区)。简单的应用程序按预期工作 #include "stdafx.h" #include <cmath> #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { std::cout << "sin: "; std::cout << std::sin(15.0)
#include "stdafx.h"
#include <cmath>
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << "sin: ";
std::cout << std::sin(15.0) << std::endl;
return 0;
}
我如何修复它?这就解决了问题
#if defined (_WIN64)
_set_FMA3_enable (0);
#endif
另见
#if defined (_WIN64)
_set_FMA3_enable (0);
#endif