Re: [ROOT] CINT bug in function matching ? / Persistant Splash Window in 2.24/05

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue May 30 2000 - 11:11:45 MEST


Hi Yannick,
Replace the declaration

typedef char chname_t[100];
by
typedef char* chname_t;

and your test will work. 
Masa is currently away for 3 weeks. He will reply to you why
your construct does not work with CINT.

Rene Brun



Patois Yannick wrote:
> 
> Hi,
> 
> I wrote the little code bellow :
> 
> // file atest.C
> 
> #ifndef __CINT__
> #include <stdio.h>
> #endif
> typedef char chname_t[100];
> void do_for_runs(int n,int *rlist,chname_t *rname)
> {
>   printf("Opening file %s (%d)\n",rname[0],rlist[0]);
> }
> 
> #ifndef __CINT__
> int main(void)
> #else
> void atest(void)
> #endif
> {
> 
>   int  rlist[1]      ={187};
>   chname_t rname[1] ={"batchs/000/result139_20000529_181438.root"};
>   do_for_runs(1,rlist,rname);
> }
> 
> It compile without warning and run as expected with g++ (linux i586)
> 
> But not with ROOT :
> root [0] .x atest.C
> Error: No symbol do_for_runs(1,rlist,rname) in current scope FILE:atest.C LINE:26
> Possible candidates are...
> filename       line:size busy function type and name
> atest.C           8:4    0 public: void do_for_runs(int n,int* rlist,chname_t* rname);
> *** Interpreter error recovered ***
> 
> ROOT versions
>  *   Version   2.23/11   14 January 2000   *
> and
>  *   Version   2.24/05       16 May 2000   *
> gives the same error on this code.
> 
> Another problem I have only with 2.24/05 wich I just tried to escape
> from this bug is that the splash window doesnt disapears and sit at the
> middle of the screen for the whole time I'm running ROOT (details: on
> this window it's still written 'Version: 2.23'). As such a behavior can't
> be missed I'm afraid it's very specific to my own configuration which
> I'll give below.
> 
> Config :
> HP intel PII box
> $ uname -a
> Linux ganp188.in2p3.fr 2.2.13-22mdk #1 SMP Fri Oct 22 02:06:33 CEST 1999 i686 unknown
> X version : XFree86-3.3.5-3mdk
> Window manager : iceWM, package version : icewm-0.9.48-1mdk
> 
> Thanx for your attention,
> 
>         Yannick
> 
>  _/ Yannick Patois _________________ Address (home) __________________
> | irc(undernet): Garp on #france25+ | La Villa des Sciences            |
> | email : patois@ganil.fr           | 12, avenue de Cambridge          |
> | web :http://www.sura.org/~patois/ | 14200 Herouville-Saint-Clair     |
> | Tel/Fax-home:+33 (0)2 31 94 50 32 | FRANCE                           |
> |___________________________________|__________________________________|



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET