[eigen] AltiVec build errors

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

In Avogadro, somebody has hit compile errors on a G5 system.

The problem seems to be with the "vector" keyword used in arch/AltiVec/PacketMath.h : it conflicts with std::vector.

The reason why we hit that issue in Avogadro and not before seems to be the particular combination of header includes and "using namespace" that avogadro is doing.

Anyway, Konstantinos, do you see something that could be done about that? Like:
* do there exist __ versions of "vector"? Like __vector or __vector__ ?
* do there exist "mm" versions like the ones used in arch/SSE/PacketMath.h ?
Either way would allow us to avoid this conflict.

Cheers,
Benoit


[  8%] Building CXX object
libavogadro/src/CMakeFiles/avogadro-lib.dir/camera.o
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::initializeViewPoint()?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:164:
error: ?class Eigen::Block<Eigen::Matrix<double, 3, 3, 3, 3, 48u>,
1, 3, 1, 32>? has no member named ?unitOrthogonal?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:168:
error: ?class Eigen::Transform3d? has no member named ?linear?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::applyPerspective() const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:196:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::applyModelview() const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:201:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?Eigen::Vector3d Avogadro::Camera::unProject(const
Eigen::Vector3d&) const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:209:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:209:
error: ?class Eigen::Transform3d? has no member named ?data?

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/