Re: preliminary experiences with egcs 1.1 on linux

From: stefan kluth (skluth@mh1.lbl.gov)
Date: Wed Sep 16 1998 - 19:37:05 MEST


On Wed, 16 Sep 1998, Andrej Filipcic wrote:
> you have to define
> 
> #   define R__ANSISTREAM     /* ANSI C++ Standard Library conformant */
> #   define R__VECNEWDELETE   /* supports overloading of new[] and delete[]*/
> 
> as for KAI or HP aCC compiler. ROOT crashes due to missing second define.
> Then it works fine.
 
> On Tue, 15 Sep 1998, stefan kluth wrote:
> > 
> > Hi,
> > 
> > I tried to compile root 2.00/11 with the new egcs 1.1 compiler, but I did
> > have problems. The resulting root.exe crashes with memory management
> > problems. Did anybody else try this? 
> > 
> > I can compile and run root with egcs 1.0.3 just fine. 

Hello,

this suggestion works great! I modified RConfig.h, compiled and linked
again and tried benchmarks.C as well as some of my own root applications.
We'll probably need something like 

#if defined(__linux) && !defined(__powerpc) && !defined(__egcs10x)

...


#endif

to pick the correct #defines for linux/egcs1.1 by default. To compile with
egcs1.0.x one would have to pass the flag -D__egcs10x to the compiler. 

Thanks again! Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
-  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
-  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----



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