Hi All,
I am trying to compile Quantlib on Mac OS X AI Captain, and getting error while building test_suit. Please find the error as under for reference:
Undefined symbols for architecture x86_64:
"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:
QuantLib::detail::quantlib_test_case::operator()() const in quantlibtestsuite.o
void (anonymous namespace)::testFdGreeks<QuantLib::FDShoutEngine<QuantLib::CrankNicolson> >() in americanoption.o
void (anonymous namespace)::testFdGreeks<QuantLib::FDAmericanEngine<QuantLib::CrankNicolson> >() in americanoption.o
AmericanOptionTest::testFdValues() in americanoption.o
AmericanOptionTest::testJuValues() in americanoption.o
AmericanOptionTest::testBjerksundStenslandValues() in americanoption.o
AmericanOptionTest::testBaroneAdesiWhaleyValues() in americanoption.o
...
"boost::unit_test::test_case::test_case(boost::unit_test::basic_cstring<char const>, boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&)", referenced from:
init_unit_test_suite(int, char**) in quantlibtestsuite.o
boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>) in americanoption.o
AmortizingBondTest::suite() in amortizingbond.o
ArrayTest::suite() in array.o
boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>) in asianoptions.o
boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>) in assetswap.o
AutocovariancesTest::suite() in autocovariances.o
...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [quantlib-test-suite] Error 1
make: *** [all-recursive] Error 1
It look like some fine tuning of ./configure file is required. Please help.
Thanks,
Chandan
------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Hello, did you try setting environment variables as suggested in the note towards the end of <http://quantlib.org/install/macosx.shtml>? Luigi On Wed, Dec 2, 2015 at 10:39 AM krsingh.chandan <[hidden email]> wrote:
-- <http://leanpub.com/implementingquantlib> ------------------------------------------------------------------------------ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
HI Luigi,
I had tried to compile it as static library rather then dynamic as default but problem persisted.
Thanks,
Chandan
------------------------------------------------------------------------------ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
No, I'm referring to the note on the installation page that says: "Users have reported linking problems since Mac OS X 10.9; the solution (thanks to Albert Azout for pointing it out) seems to be to set the environment flags CXXFLAGS and LDFLAGS to -stdlib=libstdc++ -mmacosx-version-min=10.6 before compiling." Did you try it? On Wed, Dec 9, 2015 at 4:46 PM krsingh.chandan <[hidden email]> wrote:
-- <http://leanpub.com/implementingquantlib> ------------------------------------------------------------------------------ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Free forum by Nabble | Edit this page |