[ROOT] RE:Why this error comes..Please help..

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Fri Jul 06 2001 - 14:43:27 MEST


Hello Prasad,


>Dear masa and cinters..
>       I have created 2 classes called P.h/C and A.h/C classes
>then I used makecint.
>>> makecint -mk MakeAtom -o A  -C++ P.C A.C
>>>make -f MakeAtom 

If you use makecint like above, Cint can not know anything about
your classes.   You need '-H P.h A.h' in order to register Atom
class to the interpreter.

    makecint -mk MakeAtom -o A -H P.h A.h -C++ P.C A.C

Please read the documentation  doc/makecint.txt and doc/ref.txt.
There are examples in demo/makecint/*. 


>       its giving this warning....like...
>**************************************************************
>/home/shiva/cint/src/G__ci.a(init.o): In function `G__main':
>init.o(.text+0xcb9): the use of `tmpnam' is dangerous, better use `mkstemp'
>*********************************************************************

This is completely different matter.  This is a warning. So, there
should not be any real problem.  It says they do not recommend using
tmpnam.  I'll take a look.  But, you do not suffer here.



>Then I typed 
>>>./A 
>wanted to check for the program...but its not working ...can you help..??
>
>A> {
>end with '}'> Atom x(1234,"CA",2.3,3.4,4.5,1.0, 15.0,"HETATM");
>end with '}'> x.showAtomInfo();   
>end with '}'> }
>Error: No symbol Atomx(1234,"CA",2.3,3.4,4.5,1.0,15.0,"HETATM") in current
>scope  FILE:/tmp/filec6yNxF_cint LINE:2
>Possible candidates are...
>filename       line:size busy function type and name  
>!!!Dictionary position rewound... !!!Error recovered!!!
>A> 

This is because you missed '-H P.h A.h' in makecint  as I explained
above. 


Regards,
Masaharu Goto



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