2011-08-10 11 views
3

저는 라이브러리 작업에 새로운 경험이 있으며 몇 가지 문제점이 있습니다.Visual Studio 2010에서 PCL 사용

내 컴퓨터 (Windows 7, 32 비트)에 PCL 및 모든 종속성을 설치했으며 that "Simple Cloud Visualization" example과 같은 간단한 예제를 작성하여 사용할 수 있습니다. 그러나 more complete sample을 사용하려면 Visual Studio 2010에서 연결 오류를보고합니다.

올바르게 이해할 경우 필요한 모든 "추가 종속성"을 "링커/입력"에 포함시키지 않았습니다. lib 디렉토리의 .lib 파일을 모두 포함하려고 시도했지만 오류 보고서는 여전히 동일합니다.

더 완벽한 샘플 작업을 위해 .lib을 "추가 종속성"으로 추가해야합니다. 아니면 다른 곳에 문제가 있습니까?

오류 보고서 :

1> main.obj : 오류 LNK2019 : 확인되지 않은 외부 기호? "공개 : 클래스 vtkProperty * __thiscall vtkActor :: GetProperty를 (무효)"(GetProperty를 @ vtkActor @@ QAEPAVvtkProperty @@ public : bool __thiscall pcl :: visualization :: PCLVisualizer :: addSphere (struct pcl :: PointXYZ const &, double, class std :: basic_string, 클래스 std :: allocator> const &, int) " PCLVisualizer @ 시각화 @ pcl @@ QAE_NABUPointXYZ @ 2 @ NABV? $ basic_string @ DU? $ char_traits @ D @ std @@ V? $ allocator @D @ 2 @@ std @@ H @ Z) > main.obj : 오류 LNK2019 : 해결되지 않은 외부 기호 "void __cdecl pcl :: co "public : bool __thiscall pcl :: visualization 함수에서 참조하는 nsole :: print (enum pcl :: console :: VERBOSITY_LEVEL, char const *, ...)"(? @ 콘솔 @ pcl @@ YAXW4VERBOSITY_LEVEL @ 12 @ PBDZZ) :: PCLVisualizer :: addSphere (struct pcl :: PointXYZ const &, double, 클래스 std :: basic_string, 클래스 std :: allocator> const &, int) "($ addSphere @ UPointXYZ @ pcl @@@ PCLVisualizer @ 시각화 @ pact @@ QAE_NABUPointXYZ @ 2 @ NABV? $ basic_string @ DU? $ char_traits @ D @ std @@ V? $ allocator @D @ 2 @@ std @@ H @ Z) > main.obj : 오류 LNK2019 : "public : __thiscall vtkSmartPointerBase :: ~ vtkSmartPointerBase (void)"함수 ("1 vtkSmartPointerBase @@ QAE @ XZ" VNK2019 : 해결되지 않은 외부 기호 "public : __thiscall vtkSmartPointerBase :: vtkSmartPointerBase (void)"(VNT) "0vtkSmartPointerBase @@ QAE @ XZ)"public : __thiscall vtkSmartPointer :: vtkSmartPointer (void) "(0 0) $ maintobj : 오류 LNK2019 : 확인되지 않은 외부 기호 "공공 : __thiscall vtkSmartPointerBase :: vtkSmartPointerBase (클래스 vtkSmartPointerBase의 CONST &)"기능에서 참조 (?? 0vtkSmartPointerBase @@ QAE @ ABV0 @@ Z) "공공 : __thiscall vtkSmartPointer :: vtkSmartPointer (클래스 vtkSmartPointer의 CONST &)" (0? $ vtkSmartPointer @ VvtkProp @@@@ QAE @ ABV0 @@ Z) 1> main.obj : 오류 LNK2019 : 해결되지 않은 외부 기호 "public : __thiscall vtkSmartPointerBase :: vtkSmartPointerBase (class vtkObjectBase *)"(?? "public : __thiscall vtkSmartPointer :: vtkSmartPointer (클래스 vtkSmartPointer const &)"함수에서 참조되는 0vtkSmartPointerBase @@ QAE @ PAVvtkObjectBase @@@ Z) "(?? $? 0VvtkLODActor @@@? $ vtkSmartPoin @ LNK2019 : 해결되지 않은 외부 기호 "public : class vtkSmartPointerBase & __thiscall vtkSmartPointerBase :: operator = (class vtkObjectBase();}}}}> main.obj : 오류 LNK2019 : 해결되지 않은 외부 기호"public : class vtkSmartPointerBase & __thiscall vtkSmartPointerBase :: operator = 함수 "public : class vtkSmartPointer & __thiscall vtkSmartPointer :: operator = (class vtkSmartPointer const &)에서 참조되는"(?? 4vtkSmartPointerBase @@ QAEAAV0 @ PAVvtkObjectBase @@@ Z) "(?? $? 4VvtkLODActor @@@? $ vtkSmartPointer @ VvtkProp @@@@ QAEAAV0 @ ABV?$ vtkSmartPointer @ VvtkLODActor @@@@@ Z)

답변

1

잘못된 PCL 버전 (64 비트/32 비트)을 설치했을 가능성이 있습니다. VS 버전을 확인하고 이에 따라 PCL을 설치하십시오. 64 비트 시스템을 사용하는 경우에도 컴파일러가 32 비트로 작동 할 수 있습니다.

관련 문제