Re: [ROOT] Compiling on linux

From: Robert Hatcher (rhatcher@SLAC.stanford.edu)
Date: Thu Jul 18 2002 - 16:52:09 MEST


On Thu, 18 Jul 2002, Rene Brun wrote:

> You seem to have a mismatch with your includes (gcc3 and 2.95)

> On Wed, 17 Jul 2002, Edward Chen wrote:

> > g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -DG__REGEXP
> > -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO
> > -D_REENTRANT -o cint/src/Api.o -c cint/src/Api.cxx
> > In file included from
> > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream.h:31,

Actually, this is okay.  Confusingly "g++-3" and "g++-v3" refer to the
STL headers/library and the "3" has nothing (directly) to do with gcc 3.0
vs. 2.95.2. Also the "v", or lack thereof, is quite significant.

Generally gcc 2.95.2 uses g++-3 and gcc 3.x uses g++-v3.

Here's what happens in my build under gcc 2.95.2

> g++ -g -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -DG__REGEXP
> -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO
> -D_REENTRANT -o cint/src/Api.o -c cint/src/Api.cxx

The difference is I've got -g (haven't tried it without debug).

-robert

Robert W. Hatcher   | rhatcher@fnal.gov   630-840-3102
FNAL CD/CP (MINOS)  | MS 220, PO Box 500, Batavia IL 60510



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET