error LNK2001:“无法解析的外部符号"protected: virtual void __cdecl pcl::ProjectInliers<struct pcl::PointXYZ>::applyFilter(class pcl::PointCloud<struct pcl::PointXYZ> &)" (?applyFilter@?$ProjectInliers@UPointXYZ@pcl@@@pcl@@MEAAXAEAV?$PointCloud@UPointXYZ@pcl@@@2@@Z)
error LNK2001: 无法解析的外部符号 "private: virtual bool __cdecl pcl::ProjectInliers<struct pcl::PointXYZ>::initSACModel(int)" (?initSACModel@?$ProjectInliers@UPointXYZ@pcl@@@pcl@@EEAA_NH@Z)
error LNK2019: "void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)" (?print@console@pcl@@YAXW4VERBOSITY_LEVEL@12@PEBDZZ),?该?符?号?在ú函ˉ数簓 "int `protected: bool __cdecl pcl::PCLBase<struct pcl::PointXYZ>::initCompute(void)'::`1'::catch$0" (?catch$0@?0??initCompute@?$PCLBase@UPointXYZ@pcl@@@pcl@@IEAA_NXZ@4HA)

在使用PCL库时遇到编译错误,包括LNK2001和LNK1120,提示无法解析的外部符号。错误的根本原因可能是缺少库文件或PCL版本与系统位数不匹配。解决方案包括检查和添加缺失的lib文件,确保PCL与系统位数一致。通过重新安装适配的PCL版本,问题得到解决。此外,头文件与实现文件的对应也可能影响编译。建议在安装软件时注意位数匹配,避免类似问题。
1857

被折叠的 条评论
为什么被折叠?



