Hi Alexander, Replace void Test:foo(void) by void Test::foo(void) Rene Brun Alexander Dietz wrote: > > Hello Rooters, > > I defined the following class: > > // Test.hh > class Test { > public: > void foo(void); > }; > > // Test.cc > #include "Test.hh" > void Test:foo(void) > {cout << "main\n"; } > > now when starting root and trying to include this class with > > #include "Test.cc" > > an error occured: > > Error: Unexpected EOF G__fgetstream():2 FILE:Test.cc LINE:9 > Advice: You may need to use +P or -p option > *** Interpreter error recovered *** > > I use many classes that I include in ROOT in the same way, much more > complicated classes, but I cannot include the classes I described above. > It seems to be an absolute stupid error but I cannot find it. > > Alexander Dietz
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET