[ROOT] executable

From: Ricardo Eusebi (eusebi@fnal.gov)
Date: Fri Feb 15 2002 - 20:52:27 MET


How can I make an executable out of a simple root script like the following
( linux OS)

#include "TCanvas.h"
int main(){

   TCanvas *can = new TCanvas("a","B",300,400);

return 0;
}

I tried everthing I saw on the web.
I also tried the following :


////////////////////////////////////////////////////////////////
//For ROOT//////////////////////////////////////////////////////
#include "TROOT.h"
#include "TApplication.h"
TROOT root("rint", "The ROOT Interactive Interface");
////////////////////////////////////////////////////////////////

int main() {
   TApplication app("App","My Root Program");

   return 0;
}

and didn't compile with KCC nor with root> .L <filename>.C++

In advance, Thank you !!

Ricardo

-- 
--------------------------------------------------------------------
Ricardo Eusebi
High Energy Physics
University of Rochester
Fermilab,  (630) 840 8622
--------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:41 MET