Hi Lou, Please read chapter about Streaming at page 201 of the Users Guide. Read section "Dynamic Arrays" See a concrete example at $ROOTSYS/test/Event.h,cxx, MainEvent.cxx. To build this example, run gmake Event You do not need to include <iostream.h> on Linux. Should be <iostream> by the way. Rene Brun On Tue, 24 Sep 2002, Salkind, Lou wrote: > Dear Rooters, > > I have created a LinkDef.h file for my application, but I am getting the > following errors/warnings: > > 1) When building the dictionary with rootcint (RedHat 7.3, gcc 2.96), all > "char *" strings in my classes generate an error such as > Error: ** Datamember XXX::comment: no size indication! > Error: ** Datamember XXX::comment: pointer to fundamental type (need > manual intervention) > Is there a simple way to stream char * strings to a file? > > 2) When I start up my application, I get the error > Error: class,struct,union or type ios not defined FILE: LINE:0 > *** Interpreter error recovered *** > I am including iostream.h from the root/cint/include directory in my > rootcint command. Is there any way to get the appropriate ios definitions > included by rootcint? > > Any help would be appreciated. >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET