CC5 and root 2.23 and CC5 on solaris. So what?

From: O'NEEL Bruce (bruce.oneel@obs.unige.ch)
Date: Mon Nov 01 1999 - 16:26:10 MET


Hi,
  I was sucessful doing the following:

1. using CC 5.0
2. using Makefile.solaris but adding -compat=4 to all the places where 
CXX is used.  I've attached the file below.
3. Editing src/RConfig.h and commenting out the bit 
/* 
   #   if __SUNPRO_CC > 0x420
   #      define R__ANSISTREAM
   #   endif
*/

Make sure you do a make clean...

I had tried the Makefile.solarisCC5.0 first and wasn't quite sucessful.
Since I could get it to work with the -compat=4 option for now I
decided to stick with that.

cheers

bruce


KOSU_FOKIN@garbo.lucas.lu.se writes:
 > Well, I was trying to use -compat=4 in the Makefile for test examples
 > with CC5 on solaris but it still gives 
 > 
 >                               
 > CC -O -KPIC -compat=4 -I/l/cern/root/include -c Event.cxx
 > "/l/cern/root/include/TObject.h", line 42: Error: Could not open include file <iosfwd>.
 > "/l/cern/root/include/TObject.h", line 43: Error: using is not defined.
 > "/l/cern/root/include/TObject.h", line 43: Error: "," expected instead of "std".
 > "/l/cern/root/include/TObject.h", line 150: Error: ofstream is not defined.
 > 
 > 
 > 
 > so I don't get how Rene was able to compile v 2.23 under CC4?
 > 
 > And the final question. If I have CC5 and v 2.23 ... should I
 > 1. go back to v 2.22 (not convinient, root documentation, etc. is 2.23 oriented)
 > 2. go back to CC4 
 > 3. or?
 > 
 > Best regards,
 > Anton



# Makefile of ROOT for Solaris with CC

PLATFORM      = solaris

CXX           = CC
CC            = cc
# use this when on Solaris 5.4
#CXXFLAGS      = -KPIC -I/usr/openwin/include
CXXFLAGS      = -KPIC -I/usr/openwin/include -D__SunOS_5_6 -compat=4 
CFLAGS        = -KPIC -I/usr/openwin/include
CINTCXXFLAGS  = -KPIC -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
                -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO -compat=4
CINTCFLAGS    = -KPIC -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
                -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO
OPT           = -g
NOOPT         =
LD            = $(CXX)
LDFLAGS       = $(OPT) -compat=4
SOFLAGS       = -G
SOEXT         = so
SYSLIBS       = -lm -ldl -lnsl -lsocket -lgen # -L/usr/ucblib -lucb
XLIBS         = -lXpm -L/usr/openwin/lib -lX11
CILIBS        = -lm -ltermcap -ldl -L/usr/ccs/lib -lgen


##### MACROS and TARGETS #####

include Make-macros


##### DEPENDENCIES #####

include Make-depend




-- 
Reality is 80m polygons - Alvy Ray Smith
Bruce O'Neel                       phone:  +41 22 950 91 22 (direct)
INTEGRAL Science Data Centre               +41 22 950 91 00 (switchb.)
Chemin d'Ecogia 16                 fax:    +41 22 950 91 33
CH-1290 VERSOIX                    e-mail: Bruce.Oneel@obs.unige.ch
Switzerland                        WWW:    http://isdc.unige.ch/



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