RE: [ROOT] Severe bug of cint on freebsd4.1-stable in non-interactive mode oram I misisng something ?

From: Philippe Canal (pcanal@popgtw.fnal.gov)
Date: Tue Aug 29 2000 - 17:37:58 MEST


Hi Ariel,

(I guess that) You are using cint build from the cint source directly (as opposed
to cint build from the ROOT code).  In this case, cint does not default to
debugger mode (as it does in the cint provided by ROOT).

To execute a C++ command in the cint you have, you need to surrond it by { } like:

cint> { int i=2;}
cint> { #include <stdio.h>

or to load and execute a script:

cint> L HelloWorld.c
cint> { main(); }


Please refer to http://root.cern.ch/root/Cint.html for more information
or http://root.cern.ch/root/CintInterpreter.html to use it in the ROOT context.

Philippe Canal.

> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Ariel Burbaickij
> Sent: Monday, August 28, 2000 6:19 PM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] Severe bug of cint on freebsd4.1-stable in
> non-interactive mode oram I misisng something ?
> 
> 
> Here is the output:
> 
>  cint HelloWorld.c
> Error: Bad source file(binary) stdfunc.dll
> FILE:/usr/local/cint/include/stdfunc.dll LINE:1
> 
> cint : C/C++ interpreter
>    Copyright(c) : 1995~2000 Masaharu Goto (MXJ02154@niftyserve.or.jp)
>    revision     : 5.14.47, Aug 12 2000 by M.Goto
> 
> It is for version ran.
> Now for interactive mode:
> cint> < HelloWorld.c
> Execute readline dumpfile HelloWorld.c
> cint> #include <stdio.h>
> Unknown interpreter command '#include <stdio.h>'
> cint> main() {
> Unknown interpreter command 'main() {'
> cint>   printf("Hellow World\n");
> (const char* 0x819e0e0)"Hellow World\n"
> cint> }
> Unknown interpreter command '}'
> End of readline dumpfile. All readline dumpfiles have been closed.
> 
> I do know whether it is what is being expected or not.
> How do we go about this problem.Please answer to address provided in From
> field because I am not subscribed to mailing list
> 
> Regards.
>  
> 
> 



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