On Fri, Jul 1, 2016 at 2:32 AM, John Peterson <jwpeter...@gmail.com> wrote:

>
>
> On Thu, Jun 30, 2016 at 10:15 PM, David Knezevic <
> david.kneze...@akselos.com> wrote:
>
>> I have a libMesh app (which has been working fine for a long time) that
>> has:
>>
>> #include <boost/property_tree/json_parser.hpp>
>>
>> I just updated to the git HEAD, and now I get boost compilation errors for
>> this app, e.g.:
>>
>>
>> /home/dknez/software/libmesh_install/opt_real/libmesh/include/boost/type_traits/aligned_storage.hpp:29:1:
>> error: redefinition of ‘const size_t
>> boost::detail::aligned_storage::alignment_of_max_align’
>>  BOOST_STATIC_CONSTANT(
>>  ^
>>
>> /home/dknez/software/libmesh_install/opt_real/libmesh/include/boost/aligned_storage.hpp:33:1:
>> error: ‘const size_t
>> boost::detail::aligned_storage::alignment_of_max_align’ previously defined
>> here
>>  BOOST_STATIC_CONSTANT(
>>  ^
>>
>> I guess this is related to the recent boost refresh? Any suggestions on
>> the
>> right fix?
>>
>
> Hmm... the error message is a little strange, I would have expected a
> "file not found" error caused by us forgetting a necessary header.  I guess
> could you try compiling libmesh with an external boost 1.61 instead of its
> internal one?  If that works, then it's some issue with our subset of
> boost.  If that doesn't work, then you might need to update your app to
> work with newer versions of boost somehow.
>


I've been using boost provided by Ubuntu 14.04 (which is boost 1.54), to
provide extra functionality that I need (e.g. the JSON parser, referred to
in the header above). If I add --with-boost to my libMesh configure line,
then it still uses the boost in contrib because it requires 1.61 or higher.

If I update my external boost package to 1.61 then I guess it'd work fine,
but I'd rather not do that right now... I'm not clear on why I'm getting a
"previously defined" error, though... is it because by external boost
library (from Ubuntu) is clashing with the boost in contrib?

David
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to