[ROOT] cout problems

From: Sylvian Kahane (skahane@bgumail.bgu.ac.il)
Date: Fri Jul 04 2003 - 13:06:46 MEST


Dear all,

I run the last version of root for windows (well nor evrybody belongs to the church of
Linux, I pay my taxes to Bill Gates) - the wingdk version. I tried the trivial line

cout << "Hello" << endl;

(I am in the stage when I am trying to educate myself) and I got the following error

Error: Symbol cout is not defined in current scope  FILE:(tmpfile) LINE:1
Error: << Illegal operator for pointer 3 FILE:(tmpfile) LINE:1
Error: Symbol endl is not defined in current scope  FILE:(tmpfile) LINE:1

In the Linux version is working OK.

It is not the single example where cout is bringing an error; it hapens with the script on the
page 16 of the user manual (Conventions used in this book); the one on page 28 (the for loop);
page 35. Surprisingly the script on page 105 is working (the one with include <iostream.h>)
but the one on page 110 is not, in spite of the include <iostream.h>.


Sylvian Kahane                 email: skahane@bgumail.bgu.ac.il
Physics Dept.                    fax:  972-8656-7878
Nuclear Research Center - Negev
P.O.Box 9001, Beer-Sheva, Israel



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