|
From: Luigi B. <lui...@gm...> - 2009-01-19 15:03:16
|
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 |