在Windows 7 x64中安装QuantLib-Python定量财务库时出错

时间:2017-01-23 10:14:10

标签: boost windows-7-x64 quantlib

在Windows x64上构建quantlib时,我收到以下错误:

"D:\local\QuantLib-1.9.1\QuantLib_vc14.sln" (default target) (1) ->
"D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj" (default target) (3) ->
(PostBuildEvent target) ->
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testLogLinearDiscountConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testLinearDiscountConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testLinearZeroConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testSplineZeroConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testLinearForwardConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testFlatForwardConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testConvexMonotoneForwardConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]      
    unknown location : fatal error : in "QuantLib test suite/Piecewise yield curve tests/QuantLib__detail__quantlib_test_case(&PiecewiseYieldCurveTest__testLocalBootstrapConsistency)": class QuantLib::Error: time (0.483333) is past max curve time (0.472222) [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error SB3073: The command ""D:\local\QuantLib-1.9.1\test-suite\bin\QuantLib-test-suite-vc140-x64-mt.exe" --log_level=message --build_info=yes --result_code=no --report_level=short\r [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code -1. [D:\local\QuantLib-1.9.1\test-suite\testsuite.vcxproj]

是否有针对此的已知修复程序?

编译命令:

set myboost=C:\local\boost_1_63_0
set INCLUDE=%myboost%;%INCLUDE%
set LIB=%myboost%\lib64-msvc-14.0;%LIB%
set UseEnv=true

msbuild /p:AdditionalLibPaths="%myboost\lib" /p:Configuration=Release /p:Platform=x64 QuantLib_vc14.sln

0 个答案:

没有答案