I do have a problem, but cant really figure out why,.. I have the following .H
file, that should be used to build up a dictionary,.. but just produces
errors. Does anybody know why and if there is a workaround?
=== DataManager.H ====================================================
#ifndef DataManager_H
#define DataManager_H
#include <string>
#include "stl.h"
#include "TObject.h"
class DataManager: public TObject {
public:
DataManager();
void MakeRootFile(char *filename);
void ShowADBs(char *str="");
private:
class ltstr {
public: bool operator()(const string s1, const string s2) const {return s1 <
s2;}
};
set<string, ltstr> pAvailableDBs;
void pShowDBs(set<string, ltstr> aSet, char *file);
ClassDef(DataManager, 1)
};
#endif
=========================================================================
and this is the output:
=========================================================================
rootcint mydict.C -c DataManager.H
Error: unrecognized language construct FILE:/usr/include/CC/exception LINE:25
g++ -fsigned-char -fPIC -I/afs/desy.de/products/cern/root_gcc/include
-c mydict.C
/afs/desy.de/products/cern/root_gcc/include/TError.h: In function `void
G__set_cpp_environmentmydict(...)':
In file included from mydict.C:23:
/afs/desy.de/products/cern/root_gcc/include/TError.h:40: parse error before
string constant
/products/gcc/lib/g++-include/tree.h:672: parse error at null character
/products/gcc/lib/g++-include/tree.h:676: warning: implicit declaration of
function `int root(...)'
/products/gcc/lib/g++-include/tree.h:676: warning: implicit declaration of
function `int __copy(...)'
/products/gcc/lib/g++-include/tree.h:676: `x' undeclared (first use this
function)
/products/gcc/lib/g++-include/tree.h:676: (Each undeclared identifier is
reported only once
/products/gcc/lib/g++-include/tree.h:676: for each function it appears in.)
/products/gcc/lib/g++-include/tree.h:676: `header' undeclared (first use this
function)
/products/gcc/lib/g++-include/tree.h:677: ANSI C++ forbids comparison between
pointer and integer
/products/gcc/lib/g++-include/tree.h:678: warning: implicit declaration of
function `int leftmost(...)'
/products/gcc/lib/g++-include/tree.h:679: warning: implicit declaration of
function `int rightmost(...)'
/products/gcc/lib/g++-include/tree.h:681: warning: implicit declaration of
function `int minimum(...)'
/products/gcc/lib/g++-include/tree.h:681: non-lvalue in assignment
/products/gcc/lib/g++-include/tree.h:682: warning: implicit declaration of
function `int maximum(...)'
/products/gcc/lib/g++-include/tree.h:682: non-lvalue in assignment
/products/gcc/lib/g++-include/tree.h:684: `node_count' undeclared (first use
this function)
/products/gcc/lib/g++-include/tree.h:685: confused by earlier errors, bailing
out
*** Error code 1 (bu21)
=========================================================================
ThanX in advance for any help!
Best Wishes
Selim
-- Selim Issever | Tel: 040 8998-2843 +- "The world is my true ration, DESY-F15 | Fax: 040 8998-4033 +----- Its people are my nation" Notkestr. 85 | selim.issever@desy.de +---------------- Yunus Emre --- 22603 Hamburg/Germany | http://www.physik.uni-dortmund.de/~issevers