Using TMapFiles in compiled code

Peter Steinberg (steinber@nevis1.nevis.columbia.edu)
Fri, 10 Jul 1998 12:54:31 -0400 (EDT)


I'm having some more trouble with TMapFiles.

Instead of using the tutorial macros, I want to use TMapFiles
to share memory between two compiled processes.

In the "producer" code I include "TMapFile.h" and define a pointer to
what will be the opened TMapFile.

TMapFile* mfile;

However, the compiler (VC++5.0) complains even before it finished dealing
with TMapFile.h:

d:\Root_star\include\TMapFile.h(150): error C2039: 'GetObject' :
is not a member of 'TObjLink'

What am I doing wrong here? When I look in TList.h I see that
GetObject _is_ a member of TObjLink. Do I need to include more
files?

- Peter

---------------------------------------------------------------------------
Peter Steinberg, Columbia University E-mail: peter.steinberg@cern.ch
Nevis Laboratories URL: http://wwwcn.cern.ch/~steinber
P.O. Box 137 Home Phone: (212)678-5971
Irvington, NY 10533 Nevis: (914) 591-2776 (fax 8120)
---------------------------------------------------------------------------