[ROOT] Is this a BUG in rootcint ??

From: HP Wei (hp@rentec.com)
Date: Thu Feb 27 2003 - 22:54:33 MET


// test.H defines a class B
class A;

class B {
public:
  B();
  ~B();

  bool foo(A **&a);
};
// -------------------------

# testLinkDef.h
#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;


#pragma link C++ class B-;
#endif
# ---------------------------

Now, let's do the following:

(1) rootcint testDict.C -c -p test.H testLinkDef.h
      Class B: Streamer() not declared
      Class B: ShowMembers() not declared
 
    this is fine.
    
(2)  g++ -O -fPIC -I/home/hp/ROOT/include -I./ -c -o testDict.o testDict.C
 
     testDict.C: In function `int G__B_foo_2_0(G__value *, 
                           const char *, G__param *, int)':
     testDict.C:86: no matching function for call to `B::foo (A *&)'
     test.H:8: candidates are: bool B::foo(A **&)

[Note: I am using Cint  5.14.85 on Solaris.]

Is this due to a BUG in rootcint ??

thanks,
HP



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET