Re: Why doesn't rootcint reckoginize infile.fseekg(...)

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Thu Jul 29 1999 - 21:14:21 MEST


Hello, Peter,
I've tested this. You can try this too, just type ".Class ifstream" to get
the list of all methods for this class provided.

I found CINT doesn't provide any method ifstream::seekg  for
Windows NT. However it  does under UNIX.

I'd like to mention Microsoft Visial C++ itself does provide
this method, this means one can use it from the "compiled" class.

 I hope Masahura Goto may comment this soon.
 At least problem is not trivial.

  With my regards,
                           Valery

----- Original Message -----
From: Peter Lipa <lipa@nsma.arizona.edu>
To: roottalk <roottalk@hpsalo.cern.ch>
Sent: 29 èþëÿ 1999 ã. 14:25
Subject: Why doesn't rootcint reckoginize infile.fseekg(...)


> Hi rooters,
> I have a probably (and hopfully) trivial problem when I want to use the
> services from
> <fstream.h> in rootcint (root version2.22/04) on WinNT4. The interpreters
> error message is absolutely no help for me. I also get the same error
> message if run from a macro and if I #include <fstream.h> explixitly in the
> interpreter and macro.   What am I doing wrong???
>
> root [0] ifstream in("r6651t10.TRK")
> root [1] int pos = in.seekg(794442,0)
> Error: Can't call ifstream::seekg() in current scope FILE:C:\TEMP\3 LINE:1
> Possible candidates are...
> filename       line:size busy function type and name  (in ifstream)
> filename       line:size busy function type and name  (in istream)
> filename       line:size busy function type and name  (in ios)
> *** Interpreter error recovered ***
>
>
> Thanks a lot in advance,
> Peter
>
> ****************************************************************************
> Peter Lipa, PhD                            e-mail: lipa@nsma.arizona.edu
> Arizona Research Labs - Neural Systems, Memory and Aging
> University of Arizona
> Life Sciences North Bldg, Room 384;   Phone: (520) 626-3101
> Tucson, AZ 85724-5115                       Fax: (520) 626-2618
> ****************************************************************************
>
>
>



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET