pcl\io\pcd_io.h(369): error C2589: “(”:“::”右边的非法标记

2023-11-22 12:59

本文主要是介绍pcl\io\pcd_io.h(369): error C2589: “(”:“::”右边的非法标记,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

pcl\io\pcd_io.h(369): error C2589: “(”:“::”右边的非法标记

问题

利用pcl库中的#include <pcl/io/pcd_io.h>库写入PCD文件,出现如下报错信息:
在这里插入图片描述

f:\pcl 1.9.0\include\pcl-1.9\pcl\point_traits.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
1>c:\users\new\desktop\jhtofcam_c0019 v1.0.00 20201118\jhtofcam_c0019 v1.0.00 20201118\include\jhtofcam.h(32): warning C4190: “getTofLibVersion”有指定的 C 链接,但返回了与 C 不兼容的 UDT“ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>”
1>f:\vs2017\vc\tools\msvc\14.16.27023\atlmfc\include\afxstr.h(89): note: 参见“ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>”的声明
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\pcd_io.h(369): warning C4003: 类函数宏的调用“max”参数不足
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\pcd_io.h(369): error C2589: “(”:“::”右边的非法标记
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\pcd_io.h(369): error C2059: 语法错误:“)”
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(89): warning C4003: 类函数宏的调用“max”参数不足
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(101): warning C4003: 类函数宏的调用“max”参数不足
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(89): error C2589: “(”:“::”右边的非法标记
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(89): note: 此诊断出现在编译器生成的函数“std::string pcl::PCDWriter::generateHeader(const pcl::PointCloud &,const int)”中
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(302): warning C4003: 类函数宏的调用“max”参数不足
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(305): warning C4003: 类函数宏的调用“max”参数不足
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(302): error C2589: “(”:“::”右边的非法标记
1>f:\pcl 1.9.0\include\pcl-1.9\pcl\io\impl\pcd_io.hpp(302): note: 此诊断出现在编译器生成的函数“int pcl::PCDWriter::writeBinaryCompressed(const std::string &,const pcl::PointCloud &)”中

解决方案

打开工程项目的属性页,在C/C++的预处理器中的预处理定义加入一句:

NOMINMAX

在这里插入图片描述

这篇关于pcl\io\pcd_io.h(369): error C2589: “(”:“::”右边的非法标记的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/410307

相关文章

脏页的标记方式详解

脏页的标记方式 一、引言 在数据库系统中,脏页是指那些被修改过但还未写入磁盘的数据页。为了有效地管理这些脏页并确保数据的一致性,数据库需要对脏页进行标记。了解脏页的标记方式对于理解数据库的内部工作机制和优化性能至关重要。 二、脏页产生的过程 当数据库中的数据被修改时,这些修改首先会在内存中的缓冲池(Buffer Pool)中进行。例如,执行一条 UPDATE 语句修改了某一行数据,对应的缓

Java IO 操作——个人理解

之前一直Java的IO操作一知半解。今天看到一个便文章觉得很有道理( 原文章),记录一下。 首先,理解Java的IO操作到底操作的什么内容,过程又是怎么样子。          数据来源的操作: 来源有文件,网络数据。使用File类和Sockets等。这里操作的是数据本身,1,0结构。    File file = new File("path");   字

三色标记(Tri-color marking)

维基百科部分 原文 https://en.wikipedia.org/wiki/Tracing_garbage_collection#TRI-COLOR Because of these performance problems, most modern tracing garbage collectors implement some variant of the tri-color ma

springboot体会BIO(阻塞式IO)

使用springboot体会阻塞式IO 大致的思路为: 创建一个socket服务端,监听socket通道,并打印出socket通道中的内容。 创建两个socket客户端,向socket服务端写入消息。 1.创建服务端 public class RedisServer {public static void main(String[] args) throws IOException {

Java基础回顾系列-第七天-高级编程之IO

Java基础回顾系列-第七天-高级编程之IO 文件操作字节流与字符流OutputStream字节输出流FileOutputStream InputStream字节输入流FileInputStream Writer字符输出流FileWriter Reader字符输入流字节流与字符流的区别转换流InputStreamReaderOutputStreamWriter 文件复制 字符编码内存操作流(

android java.io.IOException: open failed: ENOENT (No such file or directory)-api23+权限受权

问题描述 在安卓上,清单明明已经受权了读写文件权限,但偏偏就是创建不了目录和文件 调用mkdirs()总是返回false. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.READ_E

JavaEE-文件操作与IO

目录 1,两种路径 二,两种文件 三,文件的操作/File类: 1)文件系统操作 File类 2)文件内容操作(读文件,写文件) (1)打开文件 (2)关闭文件 (3)读文件/InputStream (4)写文件/OutputStream (5)读文件/reader (6)写文件/writer (7)Scanner 四,练习: 1,两种路径 1)绝对路径

编译linux内核出现 arm-eabi-gcc: error: : No such file or directory

external/e2fsprogs/lib/ext2fs/tdb.c:673:29: warning: comparison between : In function 'max2165_set_params': -。。。。。。。。。。。。。。。。。。 。。。。。。。。。。。。。 。。。。。。。。 host asm: libdvm <= dalvik/vm/mterp/out/Inte

收藏:解决 pip install 出现 error: subprocess-exited-with-error 错误的方法

在使用 pip 安装 Python 包时,有时候会遇到 error: subprocess-exited-with-error 错误。这种错误通常是由于 setuptools 版本问题引起的。本文将介绍如何解决这一问题 当你使用 pip install 安装某个 Python 包时,如果 setuptools 版本过高或过低,可能会导致安装过程出错,并出现类似以下错误信息:error: subpr

Nn criterions don’t compute the gradient w.r.t. targets error「pytorch」 (debug笔记)

Nn criterions don’t compute the gradient w.r.t. targets error「pytorch」 ##一、 缘由及解决方法 把这个pytorch-ddpg|github搬到jupyter notebook上运行时,出现错误Nn criterions don’t compute the gradient w.r.t. targets error。注:我用