External headers not found

Hi,

I have to use an external library in my code, which I compile using ACLiC. The headers form this external library includes other headers from this library as “PackageName/HeaderName.h”. I add the include path but still ACLiC does not find the headers. But in the last lines you see, that the requested files exist.

root [0] gSystem->AddIncludePath("/afs/e4.physik.uni-dortmund.de/user/mbunse/Documents/workspace/GoodRunsLists")
root [1] gSystem->Load("/afs/e4.physik.uni-dortmund.de/user/mbunse/Documents/workspace/GoodRunsLists/StandAlone/libGoodRunsLists.so")
root [2] .L ColTreeData.C+
Info in <TUnixSystem::ACLiC>: creating shared library /afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData_C.so
Warning in <ACLiC>: Failed to generate the dependency file for /afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData_C.so
In file included from /tmp/Papuzf_cint.cxx:1:
/tmp/rootcint_OzrcI9.h:3:88: error: /afs/e4.physik.uni-dortmund.de/user/mbunse/Documents/workspace/GoodRunsLists: No such file or directory
In file included from /tmp/rootcint_OzrcI9.h:4,
                 from /tmp/Papuzf_cint.cxx:1:
/afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData.C:9:47: error: GoodRunsLists/TGoodRunsListReader.h: No such file or directory
/afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData.C:10:45: error: GoodRunsLists/DQHelperFunctions.h: No such file or directory
Error: external preprocessing failed. :0:
!!!Removing /afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData_C_ACLiC_dict.cxx /afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData_C_ACLiC_dict.h !!!
Error: /afs/e4.physik.uni-dortmund.de/sw/root-system/linux-ubuntu-8.04-x86_64/5.26.00a/bin/rootcint: error loading headers...
Error in <ACLiC>: Dictionary generation failed!
Info in <ACLiC>: Invoking compiler to check macro's validity
/afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData.C:9:47: error: GoodRunsLists/TGoodRunsListReader.h: No such file or directory
/afs/e4.physik.uni-dortmund.de/user/mbunse/testarea/top10pbxsec_new/NtupleMakerAddOns/macros/./ColTreeData.C:10:45: error: GoodRunsLists/DQHelperFunctions.h: No such file or directory
...
root [3] .! ls /afs/e4.physik.uni-dortmund.de/user/mbunse/Documents/workspace/GoodRunsLists
root [4] .! ls /afs/e4.physik.uni-dortmund.de/user/mbunse/Documents/workspace/GoodRunsLists/GoodRunsLists
DQHelperFunctions.h          RegularFormula.h  TGoodRunsList.h            TLumiBlockRange.h
GoodRunsListSelectorTool.h   StrUtil.h         TGoodRunsListReader.h      TMsgLogger.h
IGoodRunsListSelectorTool.h  TGRLCollection.h  TGoodRunsListReader.h.gch  TUniqueGRLString.h
ITriggerRegistryTool.h       TGoodRun.h        TGoodRunsListWriter.h      TriggerRegistryTool.h

Any help would be appreciated.

Hi,

you actually need to call gSystem->AddIncludePath("-Ipath") (i.e. prefix it with “-I”).

Cheers, Axel.