Problem 323 - Compilation problems with G4DataVector.hh
Summary: Compilation problems with G4DataVector.hh
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: global (show other problems)
Version: 3.2
Hardware: PC Linux
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2001-11-26 16:57 CET by ic02
Modified: 2001-11-29 01:21 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description ic02 2001-11-26 16:57:22 CET
Initially I had no problem installing geant4.3.2. All examples compiled/ran AOK.
Then for some bizarre reason the compiler decided it didn't want to compil
G4DataVector.hh. I haven't altered this file nor the compiler over the course of
the dilemna. If anyone can help I'd appreciate it. The compilation error is
listed below.



Starting installation...

/usr/local/geant4.3.2/config/scripts
Making dependency for file src/G4VStateDependent.cc ...
Making dependency for file src/G4UnitsTable.cc ...
Making dependency for file src/G4Timer.cc ...
Making dependency for file src/G4StateManager.cc ...
Making dependency for file src/G4PhysicsVector.cc ...
Making dependency for file src/G4PhysicsTable.cc ...
Making dependency for file src/G4PhysicsOrderedFreeVector.cc ...
Making dependency for file src/G4PhysicsLogVector.cc ...
Making dependency for file src/G4PhysicsLnVector.cc ...
Making dependency for file src/G4PhysicsLinearVector.cc ...
Making dependency for file src/G4PhysicsFreeVector.cc ...
Making dependency for file src/G4LPhysicsFreeVector.cc ...
Making dependency for file src/G4ios.cc ...
Making dependency for file src/G4Exception.cc ...
Compiling G4Exception.cc ...
Compiling G4ios.cc ...
Compiling G4LPhysicsFreeVector.cc ...
Compiling G4PhysicsFreeVector.cc ...
In file included from include/G4PhysicsFreeVector.hh:59,
                 from src/G4PhysicsFreeVector.cc:44:
include/G4DataVector.hh: In method `G4DataVector::G4DataVector ()':
include/G4DataVector.hh:81: parse error before `::'
include/G4DataVector.hh: In method `G4DataVector::G4DataVector
(unsigned int)':
include/G4DataVector.hh:87: parse error before `::'
include/G4DataVector.hh: In method `G4DataVector::G4DataVector
(unsigned int, double)':
include/G4DataVector.hh:93: parse error before `::'
In file included from src/G4PhysicsFreeVector.cc:44:
Comment 1 Gabriele Cosmo 2001-11-28 02:31:59 CET
It looks like your compiler is having problems resolving the 'G4std' macro.
What compiler version are you using?
You might have installed some packages/rpms that screwed g++.
Try re-installing the necessary set of packages for your g++ compiler.
Comment 2 Gabriele Cosmo 2001-11-29 01:18:59 CET
From iwan maximus cornelius <ic02@uow.edu.au>:

I am running gcc-2.96 under red hat 7.0 on an i386.
I have already reinstalled the compiler but the problem remains.
Comment 3 Gabriele Cosmo 2001-11-29 01:21:59 CET
Please, see also problem report #318 and related item in our FAQ page.
Your problem is the compiler version you're using which is distributed with
Red-Hat 7.0 and is know to be buggy.