Re: int filehandle? && small rootcint enhancement.

From: Valery Fine (fine@mail.cern.ch)
Date: Sun Jul 06 1997 - 14:05:43 MEST


On  4 Jul 97 at 10:42, Jacek M. Holeczek wrote:

> > > Im working on interfacing root with some fortran libraries which works
> > > fine (after some hassle). My problem at the moment is how to get the LUN
> > > of a file opened in CINT to pass it to some fortran function.

> What you are trying to do is mixing I/O between C and Fortran. This
> is not a good idea. Thy problem here is that both languages (
> compilers and libraries ) keep and manage their own I/O buffers.
> Thus on principle you CANNOT freely mix I/O operations on the same
> file from the different languages. Be warned. Jacek.
> 

  I'd like to mention that CERNLIB Fortran libraries contain the
set of the subroutines to use C I/O from within Fortran 
code. May be you should try from this side too.

                      Valery
=================================================================
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for NuclearRes   Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              

Dr. Valeri Faine
    ------------                 Phone: +41 22 767 6468
CERN                             FAX  : +41 22 767 7910
CH-1211 Geneva, 23               mailto:fine@mail.cern.ch 
Switzerland                      http://nicewww.cern.ch/~fine
                                 



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