简体   繁体   English

#包括<cgal io reader_helpers.h>导致错误 C2039:“Point_3”:不是“CGAL”的成员</cgal>

[英]#include <CGAL/IO/reader_helpers.h> causes error C2039: 'Point_3': is not a member of 'CGAL'

I am currently running into the issue that if I include (not using it anywhere in the code yet) <CGAL/IO/reader_helpers.h> in my program I get some build errors:我目前遇到的问题是,如果我在我的程序中包含(尚未在代码中的任何地方使用它)<CGAL/IO/reader_helpers.h>,我会遇到一些构建错误:

1>C:\dev\CGAL-5.0.2\include\CGAL/IO/reader_helpers.h(61,71): error C2039: 'Point_3': is not a member of 'CGAL'
1>C:\dev\CGAL-5.0.2\include\CGAL/IO/reader_helpers.h(21): message : see declaration of 'CGAL'
1>C:\dev\CGAL-5.0.2\include\CGAL/IO/reader_helpers.h(61,1): error C2061: syntax error: identifier 'Point_3'

I actually want to include <CGAL/IO/STL_reader.h>, but that includes <CGAL/IO/reader_helpers.h>.我实际上想包括 <CGAL/IO/STL_reader.h>,但其中包括 <CGAL/IO/reader_helpers.h>。

Does anyone have an idea what the issue is?有谁知道问题是什么?

Thanks!谢谢!

Daniel丹尼尔

There's quite a few changes in the IO packages; IO 封装有很多变化; that header got renamed, I'm amid trying to things running with the new version (5.2.1) header 已重命名,我正在尝试使用新版本(5.2.1)运行的东西

https://www.cgal.org/2021/03/17/cgal521/

see:看:

commit 37b5928df2b4e80c09cf2cb94361827221a649a1
Author: Maxime Gimeno <maxime.gimeno@gmail.com>
Date:   Tue Dec 1 11:33:35 2020 +0100

    Fixes of warnings and errors

diff --git a/Stream_support/include/CGAL/IO/helpers.h b/Stream_support/include/CGAL/IO/helpers.h
index f261337bac..ead5a86c45 100644
--- a/Stream_support/include/CGAL/IO/helpers.h
+++ b/Stream_support/include/CGAL/IO/helpers.h
@@ -30,7 +30,8 @@ namespace internal {
 template <typename Kernel>
 void fill_point(const double x, const double y, const double z, const double w, CGAL::Point_3<Kernel>& pt)
 {
-  pt = CGAL::Point_3<Kernel>(x, y, z, w);
+  typedef typename Kernel::FT FT;
+  pt = CGAL::Point_3<Kernel>(FT(x/w), FT(y/w), FT(z/w));
 }
 
 template <typename Point_3>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 C2039:“chrono”:不是“std”的成员 - error C2039: 'chrono': is not a member of 'std' 错误 C2039:“向量”:不是“标准”的成员 - ERROR C2039: 'vector': is not a member of 'std' 错误C2039:'find':不是'std'的成员 - error C2039: 'find' : is not a member of 'std' 错误:C2039:&#39;指针&#39;:不是&#39;QJsonObject :: iterator&#39;的成员 - error: C2039: 'pointer' : is not a member of 'QJsonObject::iterator' 错误:C2039“CString”:不是“ATL”的成员 [暂停] - Error : C2039 'CString': is not a member of 'ATL' [on hold] PCL-错误C2039:“ setSize”:不是“ pcl :: visualization :: PCLVisualizer”的成员 - PCL - error C2039: 'setSize' : is not a member of 'pcl::visualization::PCLVisualizer' 错误C2039:&#39;string&#39;:不是&#39;std&#39;的成员,头文件有问题 - error C2039: 'string' : is not a member of 'std', header file problem 错误C2039:“会话”:不是“ pjsua_call”的成员 - error C2039: 'session' : is not a member of 'pjsua_call' 错误 C2039:“fabs”:不是“全局命名空间”的成员 - error C2039: 'fabs': is not a member of '`global namespace'' 有没有办法避免错误 C2039: &quot;value&quot;: 不是 &quot;boost::proto&quot; 的成员? - Is there a way to avoid error C2039: "value": Is not a member of "boost::proto"?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM