|
Boost Users : |
Subject: [Boost-users] problems in compiling application using IBM XL C/C++ V12.1 and boost1.50.0
From: Avi Bahra (avibahra_at_[hidden])
Date: 2012-08-30 09:53:15
I have used boost v12 and v11 compilers with boost 1.47 on
AIX rs6000, power6, power7. Having said that, you still need
to test each lib, for your needs.
I know the following compiled libs do work.
serialisation,
system
date_time
filesystem
program_options
serialization ( but requires a patch)
thread
test variant
Also boost spirit is broken, but classic still works.( yes but really slow)
At some point in the future we will go to boost 1.51.
In my own experience, most times you can patch the
boost headers to make it work. It's well worth trying this
since there are few users of AIX and boost.
-- Best regards, Ta, Avi ======================================================== Hi All, I am getting compilation errors when I try to build my application code which includes some boost headers using IBM XL C/C++ compiler V12.1. ------------------------------------------------------------------------------------------------ "/opt/boost/include/boost/date_time/time_resolution_traits.hpp", line 71.21: 1540-0063 (S) The text "->" is unexpected. "/opt/boost/include/boost/date_time/time_resolution_traits.hpp", line 135.33: 1540-0040 (S) The text "<" is unexpected. "time_resolution_traits" may be undeclared or ambiguous. "/opt/boost/include/boost/date_time/time_resolution_traits.hpp", line 136.33: 1540-0040 (S) The text "<" is unexpected. "time_resolution_traits" may be undeclared or ambiguous. "/opt/boost/include/boost/date_time/time_resolution_traits.hpp", line 137.33: 1540-0040 (S) The text "<" is unexpected. "time_resolution_traits" may be undeclared or ambiguous. "/opt/boost/include/boost/date_time/posix_time/posix_time_config.hpp", line 40.44: 1540-0040 (S) The text "<" is unexpected. "date_time::time_resolution_traits" may be undeclared or ambiguous. ------------------------------------------------------------------------------------------------- These errors seems come due to the fact that this version of compiler is claimed to have more standard conformance than its predecessors. I confirmed from boost release notes of boost 1.50.0 that V12. of XL C/C++ supports this boost version. But still I encountered above errors. Should I use an older version of XL C/C++ compiler so that such errors can be avoided ? Does anybody encountered similar issues ? I am completely stuck at this point and would greatly appreciate any ideas to understand and resolve this. Thanks, Pravar
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