Home › Forum › SOFA › Building SOFA › [SOLVED] build error at TriangleModel.h
Tagged: 64_bits, SOFA_1608, VS2013, Windows_81
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by jnbrunet.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
9 December 2016 at 21:54 #8062YannieBlocked
Hello All,
I tried to build v16.08 with several optional features, I got a lot errors all caused by this TriangleModel.h:
16>D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(281): error C2088: '[' : illegal for class 16>D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(283): error C2100: illegal indirection 16> D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(283) : while compiling class template member function 'const sofa::defaulttype::Vec<3,double> &sofa::component::collision::TTriangle<sofa::defaulttype::Vec3Types>::p2Free(void) const' 16> D:\GitHub\sofa\v16.08\src\modules\SofaGeneralMeshCollision\MeshMinProximityIntersection.cpp(319) : see reference to function template instantiation 'const sofa::defaulttype::Vec<3,double> &sofa::component::collision::TTriangle<sofa::defaulttype::Vec3Types>::p2Free(void) const' being compiled 16>D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(283): error C2088: '[' : illegal for class 16>D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(285): error C2100: illegal indirection 16> D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(285) : while compiling class template member function 'const sofa::defaulttype::Vec<3,double> &sofa::component::collision::TTriangle<sofa::defaulttype::Vec3Types>::p3Free(void) const' 16> D:\GitHub\sofa\v16.08\src\modules\SofaGeneralMeshCollision\MeshMinProximityIntersection.cpp(320) : see reference to function template instantiation 'const sofa::defaulttype::Vec<3,double> &sofa::component::collision::TTriangle<sofa::defaulttype::Vec3Types>::p3Free(void) const' being compiled 16>D:\GitHub\sofa\v16.08\src\SofaKernel\modules\SofaMeshCollision/TriangleModel.h(285): error C2088: '[' : illegal for class
I don’t think the code has problem as the SofaMeshCollision.lib was built successfully, but this SofaGeneralMeshCollsion project and others that need TriangleModel.h ran into the problem.
Any ideas? Thanks.
11 December 2016 at 18:34 #8067jnbrunetModeratorHey Yannie,
I had an error close to this last year. Look at the first post on this thread:
And try to look at the patch I submitted for the functions p1Free, p2Free and p3Free.
12 December 2016 at 07:33 #8069YannieBlockedThanks jnbrunet for the help! It worked!
12 December 2016 at 09:28 #8070jnbrunetModeratorAwesome!
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.