|
From: Luigi B. <lui...@gm...> - 2018-05-18 10:00:18
|
Hello,
this is a problem introduced by Boost 1.67. It was fixed in QuantLib
1.12.1. You can use that version.
Luigi
On Fri, May 11, 2018 at 10:44 PM Wangzhi Zheng <wan...@un...>
wrote:
> Hi,
>
>
>
> I am new to the quantlib and right now have a problem with the first time
> compilation of the solutions. I am using VS 2015 and Boost is the latest
> version 1.67.0. After some try and error, I am able to compile the
> quantlib solution in the debug mode successfully and run the test
> project described in the link: https://www.quantlib.org/install/vc10.shtml
> without problem. However, If I compile the whole solution in the release
> mode, it failed. The error msg:
>
>
>
> Severity
>
> Code
>
> Description
>
> Project
>
> File
>
> Line
>
> Suppression State
>
> Error
>
> LNK1104
>
> cannot open file 'libboost_unit_test_framework-vc140-mt-x32-1_67.lib'
>
> testsuite
>
> D:\Quant Projects\QuantLib-1.12\test-suite\LINK
>
> 1
>
>
>
>
>
> Then I add the boost lib folder, D:\Quant
> Projects\boost_1_67_0\lib32-msvc-14.0 into the VC++ Libraries, which solves
> the above error, But it generates another errors:
>
>
>
> Severity
>
> Code
>
> Description
>
> Project
>
> File
>
> Line
>
> Suppression State
>
> Error
>
>
>
> struct boost::unit_test::framework::setup_error: test unit with name
> 'QuantLib__detail__quantlib_test_case(boost__bind(&BasketOptionTest__testOneDAmericanValues,
> (i _(sizeof(oneDataValues)_sizeof(oneDataValues[0])))_nTestCases,
> ((i_1)_(sizeof(oneDataValues)_sizeof(oneDataValues[0])))_nTestCases))'
> registered multiple times
>
> testsuite
>
> D:\Quant Projects\QuantLib-1.12\test-suite\EXEC
>
> 1
>
>
>
> Error
>
> MSB3073
>
> The command ""D:\Quant
> Projects\QuantLib-1.12\test-suite\bin\QuantLib-test-suite-vc140-mt.exe" --
> log_level=message --build_info=yes --result_code=no --report_level=
> short:VCEnd" exited with code 200.
>
> testsuite
>
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets
>
> 133
>
>
>
> Error
>
> MSB3073
>
> The command ""D:\Quant
> Projects\QuantLib-1.12\test-suite\bin\QuantLib-test-suite-vc140-mt.exe" --
> log_level=message --build_info=yes --result_code=no --report_level=
> short:VCEnd" exited with code 200.
>
> testsuite
>
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets
>
> 133
>
>
>
>
>
> In the debug mode, after including the boost lib, everything is fine.
> However, not the case for the release.
>
>
>
> Does anyone have or encounter the same problem before? How you fix it?
> Your input is very appreciated. Have been wasting time on this for several
> days already.
>
>
>
> Best,
>
> Wangzhi
>
> *CONFIDENTIALITY NOTICE**: This email and any attachments are
> confidential and for the recipients intended by the sender, and may also
> contain information that is subject to legal privilege or other protection
> from disclosure. If you are not the intended recipient please notify the
> sender immediately, and you are also hereby notified that any review,
> disclosure, copying, distribution or use of, or the taking of any action in
> reliance upon, the information contained in this email and any attachments
> is prohibited, and that this email and any attachments must be immediately
> returned to the sender or destroyed and also deleted from your information
> systems (including any archival systems).*
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|