Hi Jacek, When using the ACLIC (Automatic Compiler Linker Interface to CINT), you do not need things like: #ifndef __CINT__ #include <stdio.h> #include <stream.h> #include "TROOT.h" #include "TTree.h" #include "TFile.h" #include "Api.h" #else class TBranch; class TTree; class TFile; #endif Simply, do: #include <stdio.h> #include <stream.h> #include "TROOT.h" #include "TTree.h" #include "TFile.h" like you do in normal C++. CINT accepts the include declarations. We always recommend to use the standard C++ declarations in normal macros in such a way that you can immediatly use the native compiler instead of the interpreter. For those who have not yet read the documentation, I recall that if you have a script , eg myScript.C, you can do: root > .x myScript.C (will be executed via the interpreter) root > .x myScript.C++ (will be executed via the native compiler using ACLIC) Rene Brun Jacek M. Holeczek wrote: > > Hi, > > (...) > > I'm not sure it will be enough, but you have at least to include the > > definition of TF1: > > #include <TF1.h> > > (...) > > Have a look on the User_Guide, I've seen some pages with examples that > > (...) > Well, I also asked a similar question : > http://root.cern.ch/root/roottalk/roottalk01/0528.html > Jacek.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET