Hi Yves!
Hmmm, I'm not so sure about that, as far as I can see. One occurrence is in
usr/include/getfem_boost/noncopyable.hpp
from Getfem, and the other in
usr/include/boost/core/noncopyable.hpp
It seems that Boost has moved the file into a core/ subdirectory, while
keeping a deprecated usr/include/boost/noncopyable.hpp that includes the
new usr/include/boost/core/noncopyable.hpp. There seems to also be some
change in the header guard strings that is causing the problem. The
Getfem file uses
BOOST_NONCOPYABLE_HPP_INCLUDED
while Boost 1.56 uses
BOOST_NONCOPYABLE_HPP and BOOST_CORE_NONCOPYABLE_HPP
Since the header guard used in the Getfem file doesn't match the one
used in Boost 1.56, the class definition appears twice, I think. I'm not
having any problems building a test program that only includes the boost
header file.
Torquil
On 08/08/14 14:36, Yves Renard wrote:
Dear Torquil,
The error message indicates an error in the file
"tmac/usr/include/boost/noncopyable.hpp" itself since the two occurences of
definition are inside that file. May be a problem with boost 1.56 ?
Yves.
----- Original Message -----
From: "Torquil Macdonald Sørensen" <[email protected]>
To: [email protected]
Sent: Friday, August 8, 2014 9:53:35 AM
Subject: [Getfem-users] Problem with Boost 1.56
After upgrading to Boost 1.56, and installing Getfem r4744, I get the
following error when trying to build my own program which uses Getfem:
In file included from
/mn/anatu/cma-u3/tmac/usr/include/boost/noncopyable.hpp:15:0,
from
/mn/anatu/cma-u3/tmac/usr/include/boost/type_traits/is_copy_constructible.hpp:18,
from
/mn/anatu/cma-u3/tmac/usr/include/boost/type_traits.hpp:53,
from
/mn/anatu/cma-u3/tmac/usr/include/boost/multi_array.hpp:30,
from /mn/anatu/cma-u3/tmac/usr/include/getfem_tools.hpp:4,
from
/mn/anatu/cma-u3/tmac/research/qcd/dirac/source/mesh_c.hpp:8,
from
/mn/anatu/cma-u3/tmac/research/qcd/dirac/source/mesh_c.cpp:6:
/mn/anatu/cma-u3/tmac/usr/include/boost/core/noncopyable.hpp: At global
scope:
/mn/anatu/cma-u3/tmac/usr/include/boost/core/noncopyable.hpp:23:9:
error: redefinition of ‘class boost::noncopyable_::noncopyable’
class noncopyable
^
In file included from
/mn/anatu/cma-u3/tmac/usr/include/getfem/bgeot_config.h:57:0,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/bgeot_convex_structure.h:42,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/bgeot_mesh_structure.h:42,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/bgeot_mesh.h:41,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/getfem_mesh.h:44,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/getfem_mesh_fem.h:41,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/getfem_assembling_tensors.h:41,
from
/mn/anatu/cma-u3/tmac/usr/include/getfem/getfem_assembling.h:44,
from
/mn/anatu/cma-u3/tmac/research/qcd/dirac/source/mesh_c.cpp:2:
/mn/anatu/cma-u3/tmac/usr/include/getfem_boost/noncopyable.hpp:27:9:
error: previous definition of ‘class boost::noncopyable_::noncopyable’
class noncopyable
^
make[2]: *** [CMakeFiles/objects.dir/mesh_c.cpp.o] Error 1
Best regards
Torquil Sørensen
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users