|Message: tpia_decayChannel.cc: error: 'M_PI' was not declared in this scope||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Building Geant4.9.5.p02 on Windows with MinGW breaks (among others) with
[ 63%] Building CXX object source/processes/CMakeFiles/_G4processes-archive.dir/hadronic/models/lend/src/tpia_decayChannel.cc.obj C:\Programs\geant4\geant4.9.5.p02-src\source\processes\hadronic\models\lend\src\tpia_decayChannel.cc: In function 'int GIDI::tpia_decayChannel_sampleProd uctsAtE(GIDI::statusMessageReporting*, GIDI::tpia_decayChannel*, GIDI::tpia_decaySamplingInfo*, int, GIDI::tpia_productOutgoingData*)': C:\Programs\geant4\geant4.9.5.p02-src\source\processes\hadronic\models\lend\src\tpia_decayChannel.cc:100:36: error: 'M_PI' was not declared in this scope
C:\Programs\geant4\geant4.9.5.p02-src\source\processes\hadronic\models\lend\src\tpia_decayChannel.cc:128:32: error: 'M_PI' was not declared in this scope
source\processes\CMakeFiles\_G4processes-archive.dir\build.make:24993: recipe for target 'source/processes/CMakeFiles/_G4processes-archive.dir/hadronic/models/lend/src/tpia_decayChannel.cc.obj' failed mingw32-make: *** [source/processes/CMakeFiles/_G4processes-archive.dir/hadronic/models/lend/src/tpia_decayChannel.cc.obj] Error 1 CMakeFiles\Makefile2:2612: recipe for target 'source/processes/CMakeFiles/_G4processes-archive.dir/all' failed mingw32-make: *** [source/processes/CMakeFiles/_G4processes-archive.dir/all] Error 2 Makefile:135: recipe for target 'all' failed mingw32-make: *** [all] Error 2
With a bit of searching I stumbled upon this: http://ubuntuforums.org/showthread.php?t=583094 where one of the users is suggesting defining M_PI as it has been taken out of the standard. I see that Geant4 does just that in many other files:
hadronic/models/chiral_inv_phase_space/body/src/G4QBesIKJY.cc: static const G4double PI = 3.14159265358979324; hadronic/models/radioactive_decay/src/G4BetaFermiFunction.cc:const G4double G4BetaFermiFunction::PI=3.14159; visualization/OpenInventor/include/HEPVis/SbMath.h:#define M_PI 3.1415926535897931160E0
What about doing something similar in that particular file as well?
I just wanted to add: I see that the beginning of file starts with
#ifdef WIN32 #define _USE_MATH_DEFINES #endif #include <cmath>
which, according to many posts, should help, but apparently it does so only for MSVC. For MinGW it doesn't make any difference.
|Inline Depth:||Outline Depth:||Add message:|