Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 在VisualStudio2010中使用PCL_Visual Studio 2010_Point Clouds_Point Cloud Library - Fatal编程技术网

Visual studio 2010 在VisualStudio2010中使用PCL

Visual studio 2010 在VisualStudio2010中使用PCL,visual-studio-2010,point-clouds,point-cloud-library,Visual Studio 2010,Point Clouds,Point Cloud Library,我对图书馆的工作很陌生,我有一些问题 我已经在我的计算机(Windows7,32位)上安装了PCL和所有依赖项,我可以构建和使用简单的示例,如。但如果我想使用,VisualStudio2010会报告链接错误 如果我理解正确,我没有在“链接器/输入”中“包括”所有必要的“附加依赖项”。我试图包含lib目录中的所有.lib文件,但错误报告仍然相同 有人知道应该将哪个.lib添加为“附加依赖项”,以使示例工作更完整吗?还是问题出在别的地方 错误报告: 1> main.obj:错误LNK2019:未解析

我对图书馆的工作很陌生,我有一些问题

我已经在我的计算机(Windows7,32位)上安装了PCL和所有依赖项,我可以构建和使用简单的示例,如。但如果我想使用,VisualStudio2010会报告链接错误

如果我理解正确,我没有在“链接器/输入”中“包括”所有必要的“附加依赖项”。我试图包含lib目录中的所有.lib文件,但错误报告仍然相同

有人知道应该将哪个.lib添加为“附加依赖项”,以使示例工作更完整吗?还是问题出在别的地方

错误报告:

1> main.obj:错误LNK2019:未解析的外部符号“public:class vtkProperty*\uu thiscall vtkActor::GetProperty(void)”(?GetProperty@vtkActor@@QAEPAVvtkProperty@@XZ)在函数“public:bool\uu thiscall pcl::visualization::PCLVisualizer::addSphere”中引用(结构pcl::PointXYZ常量和,double,类std::basic_字符串,类std::allocator>const和,int)”($addSphere@UPointXYZ@pcl@@@PCLVisualizer@visualization@pcl@@QAE_NABUPointXYZ@2@NABV?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@std@@H@Z) 1> main.obj:错误LNK2019:未解析的外部符号“void u cdecl pcl::console::print(枚举pcl::console::详细程度,字符常量*,…)”(?print@console@pcl@@yaxw4冗余_LEVEL@12@PBDZZ)在函数“public:bool\uu thiscall pcl::visualization::PCLVisualizer::addSphere”中引用(结构pcl::PointXYZ常量和,double,类std::basic_字符串,类std::allocator>const和,int)”($addSphere@UPointXYZ@pcl@@@PCLVisualizer@visualization@pcl@@QAE_NABUPointXYZ@2@NABV?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@std@@H@Z) 1> main.obj:错误LNK2019:未解析的外部符号“public:u thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)”(??1vtkSmartPointerBase@@QAE@XZ)在函数“public:u thiscall vtkSmartPointer::~vtkSmartPointer(void)”中引用(??1$vtkSmartPointer@VvtkLODActor@@@@QAE@XZ) 1> main.obj:错误LNK2019:未解析的外部符号“public:u thiscall vtkSmartPointerBase::vtkSmartPointerBase(void)”(??0vtkSmartPointerBase@@QAE@XZ)在函数“public:u thiscall vtkSmartPointer::vtkSmartPointer(void)”中引用(??0$vtkSmartPointer@VvtkLODActor@@@@QAE@XZ) 1> main.obj:错误LNK2019:未解析的外部符号“public:u thiscall vtkSmartPointerBase::vtkSmartPointerBase(类vtkSmartPointerBase const&)”(??0vtkSmartPointerBase@@QAE@ABV0@@Z) 在函数“public:u thiscall vtkSmartPointer::vtkSmartPointer(类vtkSmartPointer const&)”中引用(?0$vtkSmartPointer@VvtkProp@@@@QAE@ABV0@@Z) 1> main.obj:错误LNK2019:未解析的外部符号“public:u thiscall vtkSmartPointerBase::vtkSmartPointerBase(类vtkObjectBase*)”(??0vtkSmartPointerBase)@@QAE@PAVvtkObjectBase@@@Z) 在函数“public:u thiscall vtkSmartPointer::vtkSmartPointer(类vtkSmartPointer const&)”中引用(??$?0VvtkLODActor@@@$vtkSmartPointer@VvtkProp@@@@QAE@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z) 1> main.obj:错误LNK2019:未解析的外部符号“public:类vtkSmartPointerBase&u thiscall vtkSmartPointerBase::operator=(类vtkObjectBase*)”(??4vtkSmartPointerBase)@@QAEAAV0@PAVvtkObjectBase@@@Z) 在函数“public:class vtkSmartPointer&u thiscall vtkSmartPointer::operator=(class vtkSmartPointer const&)中引用(??$?4VVTKLODATOR@@@$vtkSmartPointer@VvtkProp@@@@QAEAAV0@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z)


可能您安装了错误的PCL版本(64位/32位)。请检查您的VS版本并相应地安装PCL。请注意,即使您使用的是64位系统,您的编译器也可能使用32位