cfortran.h and C++

From: Patois Yannick (patois@ganil.fr)
Date: Fri Oct 15 1999 - 17:23:01 MEST


Hello,

I moved to g++ 2.95 and fortran calls that were previouosly working
(with lots of warnings) is now not compiling.

Introduction:
extern "C"
{
#include "cfortran.h"
#include "hbook.h"
#include "kernlib.h"
}

The line:
  HROPEN(1,"EVENTS","pm_events.hbook","N",LREC,ISTAT);

The error:
event_output.cpp:
In function `void event_write_init(double)':
event_output.cpp:292:
passing `const char *' as argument 1 of `memset(void *, int, long
unsigned int)' discards qualifiers
event_output.cpp:292:
assignment of read-only location

I dont use the cfortran.h given with the Root source but a version
stamped :
/* cfortran.h  4.2 */          /* anonymous ftp@zebra.desy.de */
/* Burkhard Burow  burow@desy.de                 1990 - 1998. */

Is there either : a version of cfortran that would be more c++ friendly
or a workaround to have this code working under g++ ?

	Yannick

 _/ Yannick Patois _________________ Address (home) __________________
| irc(undernet): Garp on #france25+ | La Villa des Sciences            |
| email : patois@ganil.fr           | 12, avenue de Cambridge          |
| web :http://www.sura.org/~patois/ | 14200 Herouville-Saint-Clair     |
| Tel/Fax-home:+33 (0)2 31 94 50 32 | FRANCE                           |
|___________________________________|__________________________________|



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