Re: [ROOT] dirent.h library

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Jul 03 2003 - 23:30:37 MEST


Hi Chris,

 CINT does not support header files that contain more than one level of
macros. Try to use the portable ROOT interface for directory access:
TSystem::OpenDirectory(), TSystem::GetDirEntry() and
TSystem::FreeDirectory().

Cheers, Fons.



On Thu, 2003-07-03 at 16:47, Chris Hayward wrote:
> Hello,
> I am trying to use the include file dirent.h in interactive ROOT mode. I
> am using ROOT version 3.05/05 with gcc 2.96 on lxplus. When I type
> #include <dirent.h> I get the following errors:
> 
> root [0] #include <dirent.h>
> Error: Symbol __BEGIN_DECLS#include is not defined in current scope
> FILE:/usr/include/dirent.h LINE:35
> Error: Symbol bits is not defined in current scope
> FILE:/usr/include/dirent.h LINE:35
> Error: Symbol types is not defined in current scope
> FILE:/usr/include/dirent.h LINE:35
> Error: Failed to evaluate types.hError: operator '/' divided by zero
> FILE:/usr/include/dirent.h LINE:35
> Error: Symbol
> #ifdef__USE_XOPEN#ifndef__ino_t_defined#ifndef__USE_FILE_OFFSET64typedef__ino_tino_t
> is not defined in current scope  FILE:/usr/include/dirent.h LINE:35
> *** Interpreter error recovered ***
> 
> 
> Is there a modified version of dirent.h that works with ROOT? Or is there
> a ROOT library that does the same functions, such as opening directories,
> listing contents, etc.
> 
> Thank you for your help,
> Chris Hayward
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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