Re: [*] Re: [eigen] Tutorial example does not complie |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [*] Re: [eigen] Tutorial example does not complie
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 28 Jun 2010 10:58:58 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1tCUl3yhNrMOg3Md5m1llgw+HYz/8vk/edNuzBcuar8=; b=cG5UcWRLjTtVOW8thnPIw+681i19OeXNHAaZTbjQZL2zxmJRUJ21pBhi9C7VWerurv 4AC7J66WraX2CxANhZXAkV+PyfiOOgaNzXjJ4Z0bvCcyDzbfifUVAKLEZeEB0fFh07p5 hdCeDSHUWppkJEqpLbfNPg6kUqM8NlGChu5rs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kg97COPwxnBibRwUXKj7zeDHiu9HIj8lby+JaqQ0X5Ux+9ttXF+gu611WY416ZjMAI zCr/CSmP6JtVXpmv1ap1eCWfnWqcHkK+ZETz8qVqB73+DPKzhju1xMWLZZyx3xNy3dLd bHoxQ5lUZJgXGO8NtFtPhjlms7NS306E42f44=
2010/6/28 Mani chandra <mchandra@xxxxxxxxxx>:
> Hi Carlos,
>
> Thanks for the reply. I'm using eigen 2.0.14
Are you sure? I just tried your code against eigen 2.0.14, and it does
compile and run without problem (gcc 4.4.4)
Benoit
>
> Regards,
> Mani chandra
>
> On 06/28/2010 04:05 PM, Carlos Becker wrote:
>>
>> Hi Mani. This is probably because USING_PART_OF_NAMESPACE_EIGEN has been
>> removed. So just #include the necessary files and do 'using namespace
>> Eigen;'
>>
>> What version of eigen are you using to compile that? If it is the dev
>> branch then try reading the dev tutorials.
>>
>> Cheers.
>> Carlos
>>
>> On Mon, Jun 28, 2010 at 11:22 AM, Mani chandra <mchandra@xxxxxxxxxx
>> <mailto:mchandra@xxxxxxxxxx>> wrote:
>>
>> 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
>>
>>
>>
>
>
>
>