cgal
cgal copied to clipboard
Error in running case 'Shape_detection'
Issue Details
Error in running case 'Shape_detection'
1>efficient_RANSAC_with_point_access.cpp
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(46,1): error C2947: expecting '>' to terminate template-argument-list, found '<'
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(46,66): error C2365: 'Gt': redefinition; previous definition was 'template parameter'
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(45): message : see declaration of 'Gt'
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(46,68): error C2988: unrecognizable template declaration/definition
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(46,68): error C2059: syntax error: ','
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(47,1): error C2143: syntax error: missing ';' before '{'
1>E:\code\CGAL-5.6\include\CGAL/Shape_detection/Efficient_RANSAC/Octree.h(47,1): error C2447: '{': missing function header (old-style formal list?)
1>Done building project "efficient_RANSAC_with_point_access.vcxproj" -- FAILED.
Source Code
Environment
- Operating system (Windows/Mac/Linux, 32/64 bits):windows 10 64bits
- Compiler:Visual Studio 2019
- Release or debug mode:debug
- Specific flags used (if any):
- CGAL version:5.6
- Boost version:1.83.0
- Other libraries versions if used (Eigen, TBB, etc.):
This platform is part of our testing platforms and we did not have such errors. Could you please share more details?
Can you confirm that you just compile an existing example. If not please share your code on gist.github.com
I annotate CGAL-5.6\include\CGAL\Shape_ Detection\Efficiency_ From lines 46 to 48 in the Octree. h file in the RANSAC directory, there will be no errors when running the case.
Download: https://github.com/CGAL/cgal/releases/download/v5.6/CGAL-5.6.zip