Compiler errors using boost/program_options with Boost v 1.53 and v 1.59
Dear all,
I had to reinstall my boost version as the cluster environment I'm
working on has switched from Scientific Linux 6 to CentOS 7.
When I'm now compiling my code including the header "#include
On 25/04/2016 21:36, Christine Peters wrote:
I would be very glad if someone could help me. It seems that somehow the AUX778076 parameter defined in "boost/1_59_0/include/boost/mpl/times.hpp" is converted to ostimes during the compilation: I've changed, just for testing reasons!, in file "/boost/1_59_0/include/boost/mpl/times.hpp" the line "#define AUX778076_OP_NAME times" to "#define AUX778076_OP_NAME timestest" and then boost is searching for the correct header "timestest.hpp" but in the case of "#define AUX778076_OP_NAME times" it is searching for "ostimes.hpp" instead of "times.hpp".
Search through your previously included files for anything similar to this: #define times ostimes (This is just a guess, but it would match your reported symptoms.)
Thanks for the help! You were totally right, in the following Geant4 headers there is hardcoded the definition of times as ostimes. ./Geant4.10.2/geant4.10.02.p01-install/include/Geant4/G4SliceTimer.hh:#define times ostimes ./Geant4.10.2/geant4.10.02.p01-install/include/Geant4/G4Timer.hh:#define times ostimes ./Geant4.10.2/geant4.10.02.p01/source/global/management/include/G4Timer.hh:#define times ostimes ./Geant4.10.2/geant4.10.02.p01/source/global/management/include/G4SliceTimer.hh:#define times ostimes I hope now I'm able to fix the error message. Thanks again! Cheers, Christine On 04/26/2016 07:23 AM, Gavin Lambert wrote:
On 25/04/2016 21:36, Christine Peters wrote:
I would be very glad if someone could help me. It seems that somehow the AUX778076 parameter defined in "boost/1_59_0/include/boost/mpl/times.hpp" is converted to ostimes during the compilation: I've changed, just for testing reasons!, in file "/boost/1_59_0/include/boost/mpl/times.hpp" the line "#define AUX778076_OP_NAME times" to "#define AUX778076_OP_NAME timestest" and then boost is searching for the correct header "timestest.hpp" but in the case of "#define AUX778076_OP_NAME times" it is searching for "ostimes.hpp" instead of "times.hpp".
Search through your previously included files for anything similar to this:
#define times ostimes
(This is just a guess, but it would match your reported symptoms.)
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Christine Peters
-
Gavin Lambert