RE: [ROOT] Header is not seen from include path

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Apr 09 2003 - 18:57:31 MEST


Hi,

gSystem->GetIncludePath() is basically only used by ACLiC.
To add directory to the list search for interpreted file just do something
like:

	root [] .include /home/yuriy/nemo/root/include

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Shitov Yuriy
Sent: Wednesday, April 09, 2003 1:37 AM
Cc: roottalk@pcroot.cern.ch
Subject: [ROOT] Header is not seen from include path


Hi to all,

Sorry fo stupid question, but look to this ROOT dialog:

root [0] .!cat bb.C
#include <Geiger.h>

void bb {
}

root [1] gSystem->GetIncludePath()
(const char* 0x89cb61c)" -I/home/yuriy/nemo/root/include
-I/cern/root/pro/include"
root [2] .! ls -l /home/yuriy/nemo/root/include/Geiger.h
-rw-r--r--    1 yuriy    rhl3         1383 Apr  9 09:37
/home/yuriy/nemo/root/include/Geiger.h
root [3] .x bb.C
Error: cannot open file "Geiger.h"  FILE:bb.C LINE:2
*** Interpreter error recovered ***

I can't understand why ROOT don't see header???

Best,
Yuriy.

[yuriy@pcnu34 monitoring]$ root
  *******************************************
  *        W E L C O M E  to  R O O T      *
  *   Version   3.05/03      8 April 2003   *

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.82, Mar 31 2003
[root@pcnu34 ~]# uname -a
Linux pcnu34.jinr.ru 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686
i386 GNU/Linux
[root@pcnu34 ~]# gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET