Problem 537 - 4.5.2 patch 2 compiler errors
Summary: 4.5.2 patch 2 compiler errors
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 5.2
Hardware: All Linux
: P2 major
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2003-10-03 14:18 CEST by mkippen
Modified: 2003-10-07 21:50 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description mkippen 2003-10-03 14:18:41 CEST
I encountered the following compilation errors when installing patch 2 to g4.5.2.

RH Linux 7.3; gcc 2.95.3  (also on MacOS10.2.6; gcc3.1)

This is the first of many similar errors that occur and prevent installation.

Patch 1 works fine and  I did not change anything in between... the installation of Patch1 and 2.

To make matters worse, it seems that once the patch is installed there is no way to go back ---
and, earlier (non-patched) versions of 4.5.2 source are no longer available on web site.


Compiling G4DalitzDecayChannel.cc ...
In file included from include/G4ParticleDefinition.hh:346,
                 from src/G4DalitzDecayChannel.cc:35:
include/G4ParticleDefinition.icc: In method `G4int G4ParticleDefinition::GetQuarkContent(int)
const':
include/G4ParticleDefinition.icc:85: warning: control reaches end of non-void function
`G4ParticleDefinition::GetQuarkContent(int) const'
include/G4ParticleDefinition.icc: In method `G4int G4ParticleDefinition::GetAntiQuarkContent(int)
const':
include/G4ParticleDefinition.icc:105: warning: extra qualification `G4ParticleDefinition::' on
member `SetParticleSubType' ignored
include/G4ParticleDefinition.icc:105: warning: storage class `inline' invalid for function
`SetParticleSubType' declared out of global scope
include/G4ParticleDefinition.icc:105: warning: declaration of `void
G4ParticleDefinition::SetParticleSubType(const G4String &)' outside of class is not definition
include/G4ParticleDefinition.icc:105: parse error before `{'
include/G4ParticleDefinition.icc:107: warning: control reaches end of non-void function
`G4ParticleDefinition::GetAntiQuarkContent(int) const'
make[2]: *** [/geant4/geant4.5.2/tmp/Linux-g++/G4partman/G4DalitzDecayChannel.o] Error 1
Comment 1 Gabriele Cosmo 2003-10-07 21:50:59 CEST
Thanks for the report. The problem is now fixed and new tar-balls
for the source code are available, please re-apply those !