about QuantLib Test Suite

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

about QuantLib Test Suite

mindme
Hi,

Environment: Window XP, Dev-C++, Quantlib 0.9.7 and Boost 1.40.0
I am able to generate libQuantLib-mgw-0.9.7.a, compile/run all QuantLib Examples and generate libraries to stage directory using bjam successfully, but when I try to compile the test-suite using project file testsuite.dev, I got the following error message, although I already link libQuantLib-mgw-0.9.7.a and libboost_unit_test_framework-mgw-mt.a to the project :

./build/mingw/americanoption.o(.text+0x1230):americanoption.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
./build/mingw/americanoption.o(.text+0x23a0):americanoption.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
./build/mingw/americanoption.o(.text+0x3233):americanoption.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
./build/mingw/americanoption.o(.text+0x42dc):americanoption.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
./build/mingw/americanoption.o(.text+0x4f83):americanoption.cpp: undefined reference to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
./build/mingw/americanoption.o(.text+0x6080):americanoption.cpp: more undefined references to `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)' follow
collect2: ld returned 1 exit status

make.exe: *** [bin/QuantLib-test-suite-mgw-0_9_7.exe] Error 1

Execution terminated


Please advice how to resolve this issue, thanks alot!




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: about QuantLib Test Suite

Luigi Ballabio
On Fri, 2009-09-04 at 15:28 -0700, Ming Kuo wrote:

> Environment: Window XP, Dev-C++, Quantlib 0.9.7 and Boost 1.40.0
> I am able to generate libQuantLib-mgw-0.9.7.a, compile/run all
> QuantLib Examples and generate libraries to stage directory using bjam
> successfully, but when I try to compile the test-suite using project
> file testsuite.dev, I got the following error message, although I
> already link libQuantLib-mgw-0.9.7.a and
> libboost_unit_test_framework-mgw-mt.a to the project :
>
> ./build/mingw/americanoption.o(.text+0x1230):americanoption.cpp:
> undefined reference to
> `boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'

Strange. Was this a clean compilation? Is there any possibility that
americanoption.o was stale and compiled against an older version of
boost?

Luigi


--

An ideal world is left as an exercise to the reader.
-- Paul Graham



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: about QuantLib Test Suite

mindme
In reply to this post by mindme
Welcome any further advices, thanks.

--- On Wed, 9/9/09, Ming Kuo <[hidden email]> wrote:

From: Ming Kuo <[hidden email]>
Subject: Re: [Quantlib-users] about QuantLib Test Suite
To: [hidden email]
Date: Wednesday, September 9, 2009, 4:37 AM

Thank you very much for your help.

--- On Tue, 9/8/09, Luigi Ballabio <[hidden email]> wrote:

From: Luigi Ballabio <[hidden email]>
Subject: Re: [Quantlib-users] about QuantLib Test Suite
To: "Ming Kuo" <[hidden email]>
Date: Tuesday, September 8, 2009, 9:31 AM

On Mon, 2009-09-07 at 10:44 -0700, Ming Kuo wrote:
> Good point, so I run the "Rebuild All" in Dev-C++. The result is the
> same as mentioned eariler.

Hmm. I've no further ideas then... You might try finding where
boost::test_tools::tt_detail::check_impl is defined and check that it's
included in the library, but other than that, I don't know what to do.

Luigi


--

Anyone who says he can see through women is missing a lot.
-- Groucho Marx





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users