Hello Christian,
you need first to configure root with mathmore, to do that you need
to specify in the configure the location of gsl in case it is not
installed
in your system. A GSL version >= 1.8 is required.
You can do that by putting the gsl-config in your path or by
specifying the include and lib dir location of GSL :
./configure --with-gsl-incdir --with-gsl-libdir
Then you need to add in your Makefile -lMathMore.
Furthermore, I reccomend to use the class ROOT::Math::Random insted of ROOT::Math::GSLRandomEngine. In the latter case you would need to call the method Initialize().
An example exists in mathmore/test/testRandom.cxx (or testRandomDist.cxx)
See anyway the attached tr file with the corrections,
Cheers
Lorenzo
On Feb 1, 2008, at 7:03 PM, Christian Hansen wrote:
>
> Dear Rooters,
>
> where can I find an example on how to use a package like
> MathMore in a compilable program?
>
> Attached is a dummy example of a program that does not
> compile since it cannot find ROOT::Math::GSLRandomEngine.
>
> (I need multinomial.)
>
> Cheers
> / Christian Hansen<gsltest.tgz>
This archive was generated by hypermail 2.2.0 : Sun Feb 03 2008 - 05:50:04 CET