[eigen] Tutorial example does not complie

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


 Hi,

I'm trying to get the following code to work:

#include <Eigen/Core>

// import most common Eigen types
USING_PART_OF_NAMESPACE_EIGEN

int main(int, char *[])
{
Matrix3f m3;
m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
Matrix4f m4 = Matrix4f::Identity();
Vector4i v4(1, 2, 3, 4);

std::cout << "m3\n" << m3 << "\nm4:\n"
<< m4 << "\nv4:\n" << v4 << std::endl;
}

But I get the following error during compilation:

test_eigen.cc:3:1: error: ‘USING_PART_OF_NAMESPACE_EIGEN’ does not name a type

Any help?

I'm using gcc 4.5.0 20100610.

Thanks,
Mani chandra



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