Hi,
Could someone explain the following behaviour to me?
#include <strstream>
#include <iostream>
#include "TROOT.h"
#include "TApplication.h"
TROOT rsession("test", "test");
main(int argc, char** argv)
{
// TApplication app("App", &argc, argv);
ostrstream buf;
buf<< "hello";
cout<< buf.str()<<endl;
}
This outputs:
hello
If I uncomment the TApplication line, I get:
helloy/code/./stream-test-root
What gives here? I noticed one message on root-talk about a month ago
regarding similar behaviour w/ strstreams, but I thought that the problem
was CINT specific?
I run v3.00.06, RedHat v6.2, Linux v2.2.18, egcs-2.91.66
Mike Kordosky
///////////////////////////////////////////////////////////////////
// Graduate Research Assistant // High Energy Physics //
// RLM Office: (512) 471-8426 // University of Texas, Austin //
// RLM Lab: (512) 471-3526 // kordosky@hep.utexas.edu //
// ENS Lab: (512) 475-8673 // kordosky@fnal.gov //
///////////////////////////////////////////////////////////////////
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:45 MET