Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiler errors using boost/program_options with Boost v 1.53 and v 1.59
From: Christine Peters (christine.peters_at_[hidden])
Date: 2016-04-26 09:09:44


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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net