Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/SVN-somehow-breaks-on-ql-math-randomnumbers-ranluxuniformrng-hpp-tp11557p11558.html
On Sun, 2009-01-11 at 01:47 -0500, Martin Andrews wrote:
> I've just compiled (sucessfully) the latest SVN Quantlib. Now I'm
> building the Quantlib-SWIG interface for Perl. I've run into an error
> w.r.t the recently contributed
> 'ql/math/randomnumbers/ranluxuniformrng.hpp'.
>
> Here's the start of the error report:
>
> [...] /usr/include/boost/random/linear_congruential.hpp:68:61: error: macro
> "seed" passed 2 arguments, but takes just 0
Hmm. Do the Perl headers, by any chance, define a macro called "seed"?
What happens if you edit ql.i and add "undef seed" inside the "#ifdef
SWIGPERL" section at the beginning?
> PS: I've got a penny-perfect Perl version of the example
> 'swapvaluation.cpp' ready for submission, if anyone's interested.
I am--send it to me and I'll include it in next release. (I'm also
happy to see that the Perl module works for someone; it segfaults on my
machine. I might come back to you and ask for details...)
Luigi
--
If you can't convince them, confuse them.
-- Harry S. Truman
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev