点云技术相关产学研社区

 找回密码
 立即注册加入PCL中国点云技术相关产学研社区

扫一扫,访问微社区

查看: 1185|回复: 0

我设了个点类型,结果出错了,求问原因,求求求!

[复制链接]
发表于 2015-12-5 19:39:06 | 显示全部楼层 |阅读模式
struct PointXYZRGBI
{
        PCL_ADD_POINT4D;                  // preferred way of adding a XYZ+padding
        float r;
        float g;
        float b;
        float intensity;
        EIGEN_MAKE_ALIGNED_OPERATOR_NEW   // make sure our new allocators are aligned
} EIGEN_ALIGN16;                    // enforce SSE padding for correct memory alignment

POINT_CLOUD_REGISTER_POINT_STRUCT(PointXYZRGBI,           // here we assume a XYZ + "r,g,b,intersity" (as fields)
        (float, x,x)
        (float, y,y)
        (float, z,z)
        (float, r,r)
        (float, g,g)
        (float, b,b)
        (float, intensity, intensity)
)
typedef pcl::PointXYZRGBI PointT;
//////////以上这是定义点
/////结果在运行Octree的函数的时候,出现了连接错误。为什么?是不是因为我的点不在它默认文件里而出现一些问题?
其中一行连接错误是这样写的:
1>octree_pick.obj : error LNK2019: 无法解析的外部符号 "public: bool __cdecl pcl::octree::OctreePointCloudSearch<struct pcl::PointXYZRGBI,class pcl::octree::OctreeContainerDataTVector<int>,class pcl::octree::OctreeContainerEmpty<int> >::voxelSearch(struct pcl::PointXYZRGBI const &,class std::vector<int,class std::allocator<int> > &)" (?voxelSearch@?$OctreePointCloudSearch@UPointXYZRGBI@pcl@@V?$OctreeContainerDataTVector@H@octree@2@V?$OctreeContainerEmpty@H@42@@octree@pcl@@QEAA_NAEBUPointXYZRGBI@3@AEAV?$vector@HV?$allocator@H@std@@@std@@@Z),该符号在函数 main 中被引用



回复

使用道具 举报

本版积分规则

QQ|小黑屋|点云技术相关产学研社区 ( 陕ICP备13001629号 )

GMT+8, 2024-6-7 07:46 , Processed in 1.740572 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表