From: sun <pyt...@gm...> - 2009-03-28 03:04:03
|
Hi , I modified the test-suite and compile it under QuantLib-0.9.7/test-suite , but got following errors 'undefined reference to ... ProjectedCostFunction' which is defined in /ql/math/optimization/projectedcostfunction.cpp. I suppose the libMath should have that function included so in the g++ cmd, the libMath is also added but still failed, please tell what is the problem. thanks. /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O0 -Wall -L/usr/lib -o test-suite_sun.exe -lboost_unit_test_framework-gcc-mt testsuite_sun.o marketmodel_sun.o ../ql/termstructure.lo ../ql/errors.lo ../ql/timegrid.lo ../ql/settings.lo ../ql/interestrate.lo ../ql/discretizedasset.lo libUnitMain.la ../ql/models/marketmodels/libMarketModels.la ../ql/time/libTime.la ../ql/legacy/libLegacy.la ../ql/pricingengines/libPricingengines.la ../ql/math/libMath.la../ql/termstructures/libTermStructures.la ../ql/methods/libMethods.la ../ql/utilities/libUtilities.la ../ql/processes/libProcesses.la ../ql/instruments/libInstruments.la libtool: link: g++ -g -O0 -Wall -o .libs/test-suite_sun.exe testsuite_sun.o marketmodel_sun.o ../ql/.libs/termstructure.o ../ql/.libs/errors.o ../ql/.libs/timegrid.o ../ql/.libs/settings.o ../ql/.libs/interestrate.o ../ql/.libs/discretizedasset.o -L/usr/lib -lboost_unit_test_framework-gcc-mt ./.libs/libUnitMain.a ../ql/models/marketmodels/.libs/libMarketModels.a ../ql/time/.libs/libTime.a ../ql/legacy/.libs/libLegacy.a ../ql/pricingengines/.libs/libPricingEngines.a ../ql/math/.libs/libMath.a../ql/termstructures/.libs/libTermStructures.a ../ql/methods/.libs/libMethods.a ../ql/utilities/.libs/libUtilities.a ../ql/processes/.libs/libProcesses.a ../ql/instruments/.libs/libInstruments.a ../ql/termstructures/.libs/libTermStructures.a(abcdcalibration.o): In function `_ZN8QuantLib15AbcdCalibration7computeEv': /home/sun/QuantLib-0.9.7/ql/termstructures/volatility/abcdcalibration.cpp:109: undefined reference to `QuantLib::ProjectedCostFunction::ProjectedCostFunction(QuantLib::CostFunction const&, QuantLib::Array const&, std::vector<bool, std::allocator<bool> > const&)' ../ql/termstructures/.libs/libTermStructures.a(abcdcalibration.o): In function `_ZN8QuantLib15AbcdCalibration7computeEv': /home/sun/QuantLib-0.9.7/ql/termstructures/volatility/../../../ql/math/array.hpp:214: undefined reference to `QuantLib::ProjectedCostFunction::project(QuantLib::Array const&) const' /home/sun/QuantLib-0.9.7/ql/termstructures/volatility/../../../ql/math/array.hpp:214: undefined reference to `QuantLib::ProjectedCostFunction::include(QuantLib::Array const&) const' |