Problem 190 - Problem compiling with egcs-2.91.66
Summary: Problem compiling with egcs-2.91.66
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: other
Hardware: PC Linux
: P2 minor
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2001-01-14 20:43 CET by samit_basu
Modified: 2001-01-19 08:34 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 samit_basu 2001-01-14 20:43:29 CET
Get the following error when attempting to built Geant4.3 libraries:

[basu]$ make
Compiling G4IMuPairProduction.cc ...
src/G4IMuPairProduction.cc: In method `G4VParticleChange
*G4IMuPairProduction::PostStepDoIt (const G4Track &, const G4Step &)':
src/G4IMuPairProduction.cc:1353: parse error before `:'
src/G4IMuPairProduction.cc:1357: confused by earlier errors, bailing
out
make: *** [/home/basu/Geant4/tmp/Linux-g++/G4muons/G4IMuPairProduction.o] Error
1

Putting an extra pair of parenthesis around the G4std::min() seemed to fix it.

Samit
Comment 1 Gabriele Cosmo 2001-01-19 08:32:59 CET
We cannot reproduce this problem and we use the same compiler version.
The code looks correct. Some problems of preprocessing ?