|
From: Dirk E. <ed...@de...> - 2006-08-06 18:22:12
|
Luigi, On 3 August 2006 at 11:57, Luigi Ballabio wrote: | | On 07/28/2006 11:48:14 PM, Dirk Eddelbuettel wrote: | > it failed on hppa with an actual error. | | Dirk, | apologies for the delay. You might try to patch the source for | hppa only (can you do this?) I'm attaching the (untested) patch to | this message. That's didn't do it, and my poking around didn't help either. So I cried for help in front of Debian's hppa crowd, and Randolph had mercy with me. Better still, he also had the smarts of figuring out that it is a genuine g++ bug by bisecting back to version 4.0 first. He now filed this upstream at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28620 with title [4.1 regression] static const member in template class \ leads to multiple definitions at linktime Thanks to Randolph for all the help. I guess I have to wait til this is fixed in a g++ revision as Debian has g++ 4.1 as a release goal so I can't really backtrack to g++. Or well maybe now for a while but I probably have to go to 4.1 anyway (which appens to build QuantLib on all other platforms). Cheers, Dirk | Later, | Luigi | | | ---------------------------------------- | | Steinbach's Guideline for Systems Programming: | Never test for an error condition you don't know how to handle. | Index: ql/Pricers/mcpricer.hpp | =================================================================== | RCS file: //cvsroot/quantlib/QuantLib/ql/Pricers/mcpricer.hpp,v | retrieving revision 1.37 | diff -C3 -r1.37 mcpricer.hpp | *** ql/Pricers/mcpricer.hpp 18 Mar 2005 09:14:10 -0000 1.37 | --- ql/Pricers/mcpricer.hpp 3 Aug 2006 09:58:11 -0000 | *************** | *** 53,65 **** | protected: | McPricer() {} | mutable boost::shared_ptr<MonteCarloModel<MC,S> > mcModel_; | ! static const Size minSample_; | }; | | | - template<class MC, class S> | - const Size McPricer<MC,S>::minSample_ = 1023; | - | // inline definitions | template<class MC, class S> | inline Real McPricer<MC,S>::value(Real tolerance, | --- 53,62 ---- | protected: | McPricer() {} | mutable boost::shared_ptr<MonteCarloModel<MC,S> > mcModel_; | ! static const Size minSample_ = 1023; | }; | | | // inline definitions | template<class MC, class S> | inline Real McPricer<MC,S>::value(Real tolerance, | | ------------------------------------------------------------------------- | Take Surveys. Earn Cash. Influence the Future of IT | Join SourceForge.net's Techsay panel and you'll get the chance to share your | opinions on IT & business topics through brief surveys -- and earn cash | http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________ | QuantLib-dev mailing list | Qua...@li... | https://lists.sourceforge.net/lists/listinfo/quantlib-dev -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison |