Hello Chris, Look at TSystem, specifically the section: //---- Directories virtual int MakeDirectory(const char *name); virtual void *OpenDirectory(const char *name); virtual void FreeDirectory(void *dirp); virtual const char *GetDirEntry(void *dirp); virtual void *GetDirPtr() const { return 0; } virtual Bool_t ChangeDirectory(const char *path); virtual const char *WorkingDirectory(); virtual const char *HomeDirectory(const char *userName = 0); virtual int mkdir(const char *name, Bool_t recursive = kFALSE); Bool_t cd(const char *path) { return ChangeDirectory(path); } const char *pwd() { return WorkingDirectory(); } Cheers, Maarten. On Thu, 2003-07-03 at 10: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 -- Maarten Ballintijn <maartenb@mit.edu> Massachusetts Institute of Technology
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET