Hi,
Try to specify the namespace explicitly by replacing cout with std::cout, endl with std::endl.
Regards,
Paul
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of CHRISTOPHER DORAN
Sent: den 19 juli 2005 17:37
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] 'cout' not recognized
Hello again,
For reasons having to do with rootd, it appears I must use version 4.00/08 to run code intended for 3.05/07. The only problem I have is that I'm not able to use 'cout' without errors. Here are the major messages I receive when I try to run my code:
. . .
from
. . .
And here are the headers I'm using:
#define jetFill_cxx
#include "jetFill.h"
#include "TH2.h"
#include "TProfile.h"
#include "TStopwatch.h"
#include "TTimeStamp.h"
#include "TString.h"
#include "TStyle.h"
#include "TCanvas.h"
#include <TMath.h>
#ifndef __MAKECINT__
#include <iostream>
#include "fstream.h"
#endif
#include "goodRunsV7_1p.hh"
Again, without the 'cout's and 'endl's, my code runs fine. Can someone help me get this working without having to comment out every 'cout' and 'endl'? I'm hoping it's a pretty simple fix. Thanks a lot!
-Chris Doran
DePauw University
FNAL SULI Intern
Received on Tue Jul 19 2005 - 18:23:49 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET