Dear Rooters, please help me!
This is program from $ROOTSYS/test/hworld.cxx
I work in SUN OS Solaris, ROOT Ver. 2.23/12.
Interactive-mode run good, but batch-mode give my the following result:
---------
(prompt)$ myrun hworld
hworld done
(prompt)$ hworld
---------
Programm create c-object (TCanvas),
but do not "hello"-object and "l"-object (TLine) ??
Thank you,
Sergey Shulga
****************************************************
//*CMZ : 2.23/04 02/10/99 15.44.39 by Fons Rademakers
//*CMZ : 2.00/00 05/03/98 03.56.01 by Fons Rademakers
//*CMZ : 1.01/05 11/06/97 18.33.43 by Rene Brun
//*-- Author : Fons Rademakers 04/04/97
#include "TROOT.h"
#include "TApplication.h"
#include "TCanvas.h"
#include "TLine.h"
#include "TPaveLabel.h"
TROOT root("hello","Hello World");
int main(int argc, char **argv)
{
TApplication theApp("App", &argc, argv);
TCanvas *c = new TCanvas("c", "The Hello Canvas", 400, 400);
TPaveLabel *hello = new TPaveLabel(0.2,0.4,0.8,0.6,"Hello World");
hello->Draw();
c->Update();
theApp.Run(kTRUE);
TLine *l = new TLine(0.1,0.2,0.5,0.9);
l->Draw();
c->Update();
theApp.Run();
return 0;
}
**************************************************
My run-file "myrun" :
***********
CC -O -KPIC -I/scratch/shulga/ROOT/root/include -c $1.cxx
CC $1.o -L/scratch/shulga/ROOT/root/lib -lNew -lCore -lCint -lHist -lGraf \
-lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -L/usr/ccs/lib \
-lm -lsocket -lgen -ldl -lsunmath -lGX11 -lX11 -lX3d -o $1
echo $1" done"
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET