#include in root macro

From: Diego Faso <faso_at_to.infn.it>
Date: Tue, 15 Feb 2005 09:39:51 +0100 (MET)


Good morning, I have a problem concerning the inclusion of header-files in my root macro when I don't use ACLiC: I added the path to my header file ($HOME/test/include/ClassTest.h)in this way:

  gEnv->SetValue("ACLiC.IncludePaths","-I$HOME/test/include");

and the test macro is "TestMacro.C":

//----------------------------------------------

#include "ClassTest.h"
#include <Riostream.h>
#include "TCanvas.h"

void TestMacro{
  cout << "Test" << endl;
  TCanvas *ct = new TCanvas();
  TClassTest *mytest = new TClassTest(); }
//----------------------------------------------

I can compile my macro with ACLiC, but if I run the same macro without compiling it (without the "++"), this error message appears:

Error: cannot open file "ClassTest.h" FILE:TestMacro.C LINE:1 *** Interpreter error recovered ***

The inclusion of root headers does not cause any problem, so I think I should add the path to my include files somewhere, but I don't know where. Is there a way to fix this problem?

The description of my system is:

Thank you in advance.
Cheers
Diego Faso Received on Tue Feb 15 2005 - 09:40:00 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET