|
From: Ivan A. C. <iva...@gm...> - 2016-09-09 15:04:03
|
One more observation I wanted to share: with /fp:strict /fp:except compile flags ( https://msdn.microsoft.com/en-us/library/e7s85ffb.aspx) I’m getting build errors. command line: ^C:\TMP\QL18_VC2015_MK3\QUANTLIB-1.8\QL\EXPERIMENTAL\FINITEDIFFERENCES\DYNPROGVPPINTRINSICVALUEENGINE.CPP /c /IC:\BIN\BOOST_1_61_0 /I. /Zi /nologo /W3 /WX- /O2 /Ob2 /Ot /D NDEBUG /D WIN32 /D _LIB /D _SCL_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_DEPRECATE /D _MBCS /GF /Gm- /EHsc /MD /GS /Gy /fp:strict /fp:except /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo".\BUILD\VC140\X64\RELEASE\\" /Fd".\BUILD\VC140\X64\RELEASE\QUANTLIB.PDB" /Gd /TP C:\TMP\QL18_VC2015_MK3\QUANTLIB-1.8\QL\EXPERIMENTAL\FINITEDIFFERENCES\DYNPROGVPPINTRINSICVALUEENGINE.CPP build errors: … 1> dynprogvppintrinsicvalueengine.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xcomplex(646): error C2131: expression did not evaluate to a constant (compiling source file ql\experimental\finitedifferences\hestonrndcalculator.cpp) 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xcomplex(646): note: failure was caused by an undefined arithmetic operation (compiling source file ql\experimental\finitedifferences\hestonrndcalculator.cpp) 1> ql\experimental\finitedifferences\hestonrndcalculator.cpp(110): note: see reference to function template instantiation 'std::complex<double> std::log<double>(const std::complex<double> &)' being compiled … 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xcomplex(232): error C2131: expression did not evaluate to a constant (compiling source file ql\math\modifiedbessel.cpp) 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xcomplex(232): note: failure was caused by an undefined arithmetic operation (compiling source file ql\math\modifiedbessel.cpp) 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xcomplex(253): note: see reference to function template instantiation '_Ty std::_Fabs<double>(const std::complex<double> &,int *)' being compiled 1> with ... and so on. |