Skip to content

Conversation

@bkevelham
Copy link

Include iterator and StdVector (http://eigen.tuxfamily.org/dox/group_TopicStlContainers.html) headers to resolve compiler errors in Visual Studio 2010

@janbender
Copy link
Member

Hi,

for me it works in Visual Studio 2010 if I only add the line

#include

in the file Demos/Utils/IndexedFaceMesh.h. The other two includes were not necessary. Can you please try this and modify your pull request?

Jan

@bkevelham
Copy link
Author

If I do that I get a list of errors along the following lines:

1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector(870): error C2719: '_Val': formal parameter with __declspec(align('16')) won't be aligned
1>          d:\libraries\positionbaseddynamics\demos\clothdemo\TriangleModel.h(42) : see reference to class template instantiation 'std::vector<_Ty,_Ax>' being compiled
1>          with
1>          [
1>              _Ty=PBD::TriangleModel::BendingConstraint,
1>              _Ax=Eigen::aligned_allocator<PBD::TriangleModel::BendingConstraint>
1>          ]

Inclusion of StdVector resolves this for me.

@janbender
Copy link
Member

Which version of Eigen do you have? Is it a Win32 or Win64 build?

@janbender
Copy link
Member

Ok, this seems to be a Win32 issue.

janbender added a commit that referenced this pull request Sep 8, 2015
Include extra headers to resolve compiler errors on Visual Studio 2010
@janbender janbender merged commit 34b1fdc into InteractiveComputerGraphics:master Sep 8, 2015
@bkevelham
Copy link
Author

I can confirm I was indeed on Win32. And the Eigen version was the one in extern. Glad you could reproduce it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants