Re: [eigen] Matrix blocks not working with gcc 4.5.0 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Matrix blocks not working with gcc 4.5.0
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 24 Sep 2010 16:16:56 -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=aNaH+2NKF+dPTjxbxd/eDE3NqAPB+58OJ/Rag9Jm9EQ=; b=ITrKTp+6miLsBgZY3Mlo819StZ/i0s/CzW5e0jAnIU0lEi5/WrB0YY+axmCah7oLxz qg2K94cyva6sYLau5TYs613JpVLI/gPevx9HKNASuZ2/voIsm4qgTVO5NSiEcpWctzPB wzIdjQG4KvbWIBfnAM12iFW4vVTjQyQsjyhBk=
- 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=c2MnmMbpNCKBnQ/XG7fIXW8DVy3HTw876ZwiHcSdpYRDvIfalFbDnQmajCdrfd5yPA dLUKvUO6fUOTabYMmOTs8EZvaiRzVuGNoJqVberZgFEvPoDXDCj/hWj7QvaWfVtAOTGL 7FbFidoKQ0V+UuaWkdKqNnIO08AuMK5vAr2c8=
without even looking at the example i know the problem :p
you forgot to write 'template' when calling a templated method on an
object whose type depends on template params.
foo.template bar();
2010/9/24 <lfrfly@xxxxxxxxxxx>:
> I've attached a simple test program which demonstrates the problem. It works
> fine in Visual Studio 2010, but gcc 4.5.0 chokes. For reference, the errors
> I'm seeing are:
>
> testeigenblock.cpp: In member function ‘void S<N>::F()’:
> testeigenblock.cpp:15:23: error: request for member ‘setIdentity’ in ‘(0,
> 0)’, which is of non-class type ‘int’
> testeigenblock.cpp: In member function ‘void S<N>::F() [with int N = 4]’:
> testeigenblock.cpp:23:9: instantiated from here
> testeigenblock.cpp:15:5: error: invalid operands of types ‘<unresolved
> overloaded function type>’ and ‘int’ to binary ‘operator<’
> testeigenblock.cpp:16:5: error: invalid operands of types ‘<unresolved
> overloaded function type>’ and ‘int’ to binary ‘operator<’
>
> Any idea how to fix this?
>