Posted by
PAEdwards on
URL: http://quantlib.414.s1.nabble.com/can-not-compile-using-provided-code-tp372.html
Hi all
I am a rookie in QuantLib and Unix, so please accept my apology for this entry level question.
I just follow the instructions listed on QuantLib install website
http://quantlib.org/install/macosx.shtmland successfully (I hope so) install Boost 1.50.0 and QuantLib 1.0.1 on a Mac OS X 10.6 . After that I got trouble in compiling the provided example:
g++ -I/opt/local/include/ -I/opt/local/include/boost BermudanSwaption.cpp \
-o bermudanswaption -L/opt/local/lib/ -lQuantLib and got a huge error message looks like:
"Undefined symbols:
"boost::unit_test::test_suite::add(boost::unit_test::test_unit*, unsigned long, unsigned int)", referenced from:
BermudanSwaptionTest::suite() in BermudanSwaption.o
"boost::unit_test::unit_test_log_t::operator()(boost::unit_test::log_level)", referenced from:
BermudanSwaptionTest::testCachedValues() in BermudanSwaption.o
"boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)", referenced from:
BermudanSwaptionTest::testCachedValues() in BermudanSwaption.o".........
......
......
Can any one help to figure out what happened here? Thank you very much for your help!
Allen