Login  Register

Re: Variance Swap test

Posted by Luigi Ballabio on Feb 15, 2017; 8:56am
URL: http://quantlib.414.s1.nabble.com/Variance-Swap-test-tp18059p18086.html

The main() function using the suite is provided by the Boost unit-test framework; you'll need to provide an init_unit_test_suite function, as done in the quantlibtestsuite.cpp file.

As for the linking errors you were getting: flatRate is defined in test-suite/utilities.cpp, and you need to link it together with your other files.

Luigi


On Tue, Feb 7, 2017 at 5:35 PM ziegele <[hidden email]> wrote:
BTW, if I "directly call" the suite() function in main() this way:

<http://quantlib.10058.n7.nabble.com/file/n18060/main.jpg>

I got 2 errors while compiling:

<http://quantlib.10058.n7.nabble.com/file/n18060/error.jpg>

This is how to link boost library and quantlib for this project:

<http://quantlib.10058.n7.nabble.com/file/n18060/include.jpg>

<http://quantlib.10058.n7.nabble.com/file/n18060/library.jpg>

Could anyone please advise how to fix?





--
View this message in context: http://quantlib.10058.n7.nabble.com/Variance-Swap-test-tp18059p18060.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users