Problem 32

Summary: Incompatible with IRIX native STL
Product: Geant4 Reporter: marc.kippen
Component: global/managementAssignee: Gunter.Folger
Status: CLOSED LATER    
Severity: normal CC: John.Allison
Priority: P2    
Version: 0.1   
Hardware: SGI   
OS: IRIX   

Description marc.kippen 1999-11-11 15:01:32 CET
Geant4 fails to compile on SGI/IRIX systems using CC and native (SGI) version
of STL.

The first problem occurrs when compiling global/management/G4Exception.cc

The problem appears to be related to the STL <string> include and the
associated <cstring> include (which is not part of standard SGI STL, but is
available in Linux/g++).
Comment 1 Gabriele Cosmo 1999-11-15 02:07:59 CET
Issue: porting of Geant4 on SGI/Irix platforms.

We're currently evaluating the issue if to provide support for SGI-CC.
Geant4.0.1 has not been ported on SGI platforms (see release notes).
Comment 2 Gabriele Cosmo 2000-12-07 05:17:59 CET
We currently do not support SGI (we do not have even means to
test installations of G4 on SGI systems). However, we're open to make
available configurations provided by users, if that does not require
nasty changes in code or configuration itself.
Our general trend is to move away from compilers which
do not follow the C++ standard, and SGI-CC is unfortunately one of
these (we used to support it in the past...).
The current version of the SGI compiler defines I/O classes in a
different namespace than 'std', contrary to the ISO/ANSI standard.
We cannot -force- our developers to follow non-standard rules.
We honestly hope SGI-CC will evolve.
In general, one should avoid (it is a bad practise) to adapt code to
compilers features, especially when a language standard is defined.
We foresee in a very close future to move 'g4std' to 'std' as well
('g4std' was introduced to make possible the transition from old
no-ISO/ANSI compliant compilers to new ones).