- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] errors when compiling CGALPLUGIN in VS2017
Tagged: 64_bits, Plugin_other, SOFA_other, VS2017, Windows_10
Hi
When I compiling CGALPLUGIN in VS2017,it showed some errors like these.I use the version of SOFA on the master branch and CGAL4.7.
C2988 unrecognizable template declaration/definition (compiling source file D:\sofa\src\applications\plugins\CGALPlugin\src\CGALPlugin\DecimateMesh.cpp) CGALPlugin C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xmemory 18
C2143 syntax error: missing ';' before '<' (compiling source file D:\sofa\src\applications\plugins\CGALPlugin\src\CGALPlugin\DecimateMesh.cpp) CGALPlugin C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xmemory 18
C4430 missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file D:\sofa\src\applications\plugins\CGALPlugin\src\CGALPlugin\MeshGenerationFromPolyhedron.cpp) CGALPlugin C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xmemory 18
I don’t know how to solve it.Please help me.Thanks.
John
Do you install CGAL package CGAL? if not, I think you should try to download and install it.
HI.Thanks for your reply.
I have installed CGAL4.7 and run the CGAL demo Triangulation_2 successfully.But there are some errors as was stated above when compiling CGALPLUGIN.
CGAL4.7 it is too old. I think you should try to upgrade toward the latest version 5.0
Thanks for your advice. it works and the problem is solved.
Best Regards
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.