Problem 1121 - problem during geant4_9_3_p01 installation in Windows XP operating system
Summary: problem during geant4_9_3_p01 installation in Windows XP operating system
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 9.3
Hardware: All All
: P3 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2010-06-16 11:05 CEST by mayur
Modified: 2010-06-16 18:33 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 mayur 2010-06-16 11:05:43 CEST
Dear sir/madam,
I am a new user of geant4 with its latest release. I have carefully followed the recommendations given in the installation guide of geant4_9_3_p01 for windows and have all the correct versions mentioned in that guide.

I still have two errors in the installation coming repeatedly. I have tried to fix it but unable to find answer.
The two errors are as follows,

1. during the compilation of following files the first error appears,

Making dependency for file src/G4XTRTransparentRegRadModel.cc ...
Making dependency for file src/G4XTRRegularRadModel.cc ...
Making dependency for file src/G4XTRGammaRadModel.cc ...
Making dependency for file src/G4VXTRenergyLoss.cc ...
Making dependency for file src/G4VTransitionRadiation.cc ...
Making dependency for file src/G4TransparentRegXTRadiator.cc ...
Making dependency for file src/G4TransitionRadiation.cc ...
Making dependency for file src/G4SynchrotronRadiationInMat.cc ...
Making dependency for file src/G4SynchrotronRadiation.cc ...
Making dependency for file src/G4StrawTubeXTRadiator.cc ...
Making dependency for file src/G4Scintillation.cc ...
Making dependency for file src/G4RegularXTRadiator.cc ...
Making dependency for file src/G4GammaXTRadiator.cc ...
Making dependency for file src/G4ForwardXrayTR.cc ...
Making dependency for file src/G4Cerenkov.cc ...
Removing library libG4xrays.a ...
Removing library libG4xrays.dll ...
Compiling G4Cerenkov.cc ...
G4Cerenkov.cc
Compiling G4ForwardXrayTR.cc ...
G4ForwardXrayTR.cc
Compiling G4GammaXTRadiator.cc ...
G4GammaXTRadiator.cc
src/G4GammaXTRadiator.cc(105) : error C2665: 'std::pow' : none of the 6 overloads could convert all the argument types
        D:\VS 2010\VC\INCLUDE\math.h(122): could be 'double pow(double,double)' [found using argument-dependent lookup]
        D:\VS 2010\VC\INCLUDE\math.h(497): or       'double pow(double,int)'
        D:\VS 2010\VC\INCLUDE\math.h(533): or       'float pow(float,float)'
        D:\VS 2010\VC\INCLUDE\math.h(535): or       'float pow(float,int)'
        D:\VS 2010\VC\INCLUDE\math.h(581): or       'long double pow(long double,long double)'
        D:\VS 2010\VC\INCLUDE\math.h(583): or       'long double pow(long double,int)'
        while trying to match the argument list '(G4complex, G4int)'
make[2]: *** [d:/geant4/geant4_9_3_p01/tmp/WIN32-VC/G4xrays/G4GammaXTRadiator.o] Error 2



Error 2 : second Error is also linked to first which is coming at much later stage of installation.

Making dependency for file src/G4StableIsotopes.cc ...
Making dependency for file src/G4ReactionProduct.cc ...
Making dependency for file src/G4ReactionKinematics.cc ...
Making dependency for file src/G4ReactionDynamics.cc ...
Making dependency for file src/G4Nucleus.cc ...
Making dependency for file src/G4LightMedia.cc ...
Making dependency for file src/G4IsoResult.cc ...
Making dependency for file src/G4HadronicWhiteBoard.cc ...
Making dependency for file src/G4HadTmpUtil.cc ...
Making dependency for file src/G4HadSignalHandler.cc ...
Making dependency for file src/G4HadSecondary.cc ...
Making dependency for file src/G4HadProjectile.cc ...
Making dependency for file src/G4HadFinalState.cc ...
Making dependency for file src/G4Bessel.cc ...
Removing library libG4hadronic_util.a ...
Removing library libG4hadronic_util.dll ...
Compiling G4Bessel.cc ...
G4Bessel.cc
Compiling G4HadFinalState.cc ...
G4HadFinalState.cc
Compiling G4HadProjectile.cc ...
G4HadProjectile.cc
Compiling G4HadSecondary.cc ...
G4HadSecondary.cc
Compiling G4HadSignalHandler.cc ...
G4HadSignalHandler.cc
Compiling G4HadTmpUtil.cc ...
G4HadTmpUtil.cc
Compiling G4HadronicWhiteBoard.cc ...
G4HadronicWhiteBoard.cc
Compiling G4IsoResult.cc ...
G4IsoResult.cc
Compiling G4LightMedia.cc ...
G4LightMedia.cc
Compiling G4Nucleus.cc ...
G4Nucleus.cc
Compiling G4ReactionDynamics.cc ...
G4ReactionDynamics.cc
Compiling G4ReactionKinematics.cc ...
G4ReactionKinematics.cc
Compiling G4ReactionProduct.cc ...
G4ReactionProduct.cc
Compiling G4StableIsotopes.cc ...
G4StableIsotopes.cc
make[1]: *** No rule to make target `d:/geant4/geant4_9_3_p01/tmp/WIN32-VC/G4xrays/obj.last', needed by `d:/geant4/geant4_9_3_p01/lib/WIN32-VC/libG4processes.a'.  Stop.
Comment 1 Gabriele Cosmo 2010-06-16 18:33:20 CEST
Seems you're using a compiler (Visual Studio 2010) which is currently -not- supported.
The supported compiler for release 9.3 is Visual Studio 2008 (VC++ 9.0) .
Please, try using that one, you can download the Visual C++ express edition for free:
http://www.microsoft.com/express/Downloads/#2008-Visual-CPP

The error reported seems at first look a problem with the compiler in use;
The function 'std::pow(complex,int)' is a perfectly legal Standard C++ call,
but the compiler is apparently giving priority to C style definitions in math.h ...