Open ZhuLingfeng1993 opened 2 years ago
The code is the PCL tutorial code of "How to visualize range image”
I tested the code you posted under Ubuntu 21.10 (gcc 11.2.0), and it compiled successfully. So this might be an MSVC-only issue. How did you install PCL? With vcpkg or the all-in-one installer or some other way?
I use the all-in-one installer
@larshg Could you have a look at this? Seems to be Windows-only
Describe the error
range_image_visualization.cpp.obj : error LNK2001: 无法解析的外部符号 "public: virtual void cdecl pcl::RangeImage::getSubImage(int,int,int,int,int,class pcl::RangeImage &)const " (?getSubImage@RangeImage@pcl@@UEBAXHHHHHAEAV12@@Z) range_image_visualization.cpp.obj : error LNK2001: 无法解析的外部符号 "public: virtual void cdecl pcl::RangeImage::getHalfImage(class pcl::RangeImage &)const " (?getHalfImage@RangeImage@pcl@@UEBAXAEAV12@@Z) range_image_visualization.cpp.obj : error LNK2019: 无法解析的外部符号 "protected: static int const pcl::RangeImage::lookup_table_size" (?lookup_table_size@RangeImage@pcl@@1HB),函数 "protected: static float cdecl pcl::RangeImage::asinLookUp(float)" (?asinLookUp@RangeImage@pcl@@KAMM@Z) 中引用了该符号 range_image_visualization.cpp.obj : error LNK2019: 无法解析的外部符号 "protected: static class std::vector<float,class std::allocator > pcl::RangeImage::asin_lookup_table" (?asin_lookup_table@RangeImage@pcl@@1V?$vector@MV?$allocator@M@std@@@std@@A),函数 "protected: static float cdecl pcl::RangeImage::asinLookUp(float)" (?asinLookUp@RangeImage@pcl@@KAMM@Z) 中引用了该符号
range_image_visualization.cpp.obj : error LNK2019: 无法解析的外部符号 "protected: static class std::vector<float,class std::allocator > pcl::RangeImage::atan_lookup_table" (?atan_lookup_table@RangeImage@pcl@@1V?$vector@MV?$allocator@M@std@@@std@@A),函数 "protected: static float __cdecl pcl::RangeImage::atan2LookUp(float,float)" (?atan2LookUp@RangeImage@pcl@@KAMMM@Z) 中引用了该符号
range_image_visualization.exe : fatal error LNK1120: 5 个无法解析的外部命令
To Reproduce
Screenshots/Code snippets/Build information
Your Environment (please complete the following information):
Additional context
When I use RangeImage, everything is ok(except for the visualization of range image, so I commnet relative code), but when I use RangeImageShperical, the link error occuored.