Well thanks. It seems simple and it is working, but why the weird sintax, why the "R" and where are the brackests <....> ? 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 ----- Original Message ----- From: "Nick van Eijndhoven" <Nick@phys.uu.nl> To: "Sylvian Kahane" <skahane@bgumail.bgu.ac.il> Cc: <roottalk@pcroot.cern.ch> Sent: Friday, July 04, 2003 3:24 PM Subject: Re: [ROOT] cout problems > Hi Sylvian, > It means you need to include the header file(s) for the iostream functions. > The way I do this is by just adding > > #include "Riostream.h" > > in my rootlogon.C file in my home directory. > This means that in any ROOT session you have the stuff available. > > Cheers, > Nick. > > -- > Dr. Nick van Eijndhoven mailto:nick@phys.uu.nl http://www.phys.uu.nl/~nick > -------------------------------------------------------------------------- > Org.: Utrecht University, Faculty of Physics and Astronomy > Address: Princetonplein 5, NL-3584 CC Utrecht, The Netherlands > Phone: +31-30-2532331(direct) +31-30-2531492(secr.) Fax: +31-30-2518689 > CERN: +41-22-7679751(direct) +41-22-7675857(secr.) Fax: +41-22-7679480 > Offices: Buys Ballot laboratory Room 710 (Utrecht) B23 1-020 (CERN) > -------------------------------------------------------------------------- > > > > Sylvian Kahane wrote: > > > > 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