[ROOT] RE:#pragma link C++ namespace gsl;

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Mon Jun 04 2001 - 23:17:21 MEST


Hello Jacek,

You need to have $CINTSYSDIR/include/stdfunc.dll or
$ROOTSYS/cint/include/stdfunc.dll and include <math.h> or <cmath> in 
order to resolve math functions correctly. Cint allows to use math 
functions without those includes for user's conveniennce, but with 
incorrect overloading resolution. If you want to use them correctly, 
you need to include <math.h> or <cmath>.

stdfunc.dll can be compiled using pure cint distribution. In case 
this does not work, it is possible that CINT and ROOTCINT have 
different table size which causes binary incompatibility of shared
library. The issue will be resolve after cint5.15.X. 

Thank you
Masaharu Goto


>Date: Mon, 4 Jun 2001 10:59:22 +0200 (MET DST)
>From: "Jacek M. Holeczek" <holeczek@us.edu.pl>
>To: Masaharu Goto <MXJ02154@nifty.ne.jp>
>Subject: RE:#pragma link C++ namespace gsl;
>
>Hi,
>I'd like to report another problem :
>------------------------------------
>> root (3.00/06, CINT version 5.14.79, Feb 24 2001, RH6.1/i686)
>root [0] .L GSL.so
>root [1] sin(1.0)
>(double)8.41470984807896505e-01
>root [2] std::sin(1.0)
>(double)8.41470984807896505e-01
>root [3] using namespace gsl;
>root [4] sin(1.0)                       // shouldn't it use sin(double) here 
?
>(const class gsl::fcomplex)144503288
>root [5] std::sin(1.0)                 // std::sin(double) returns fcomplex !
>(const class gsl::fcomplex)144503336
>------------------------------------
>Best regards,
>Jacek.
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:48 MET