[vtkusers] Test Slider Widget 2D
David Doria
daviddoria+vtk at gmail.com
Tue Jul 13 12:23:44 EDT 2010
2010/7/13 Xiaopeng Yang <yxp233 at postech.ac.kr>
> Dear all,
>
> I made a CMakeLists.txt file to compile TestSliderWidget2D.cxx. I succedded
> in generating C++ project file by Cmake. However, when I release the
> project, errors occured.
>
> I attached my CMakeLists.txt file and TestSliderWidget2D.cxx file to this
> email.
>
> Can anybody know why these kinds of errors occured? Thank you.
>
> 1>------ Build started: Project: TestSliderWidget2D, Configuration:
> Release Win32 ------
>
> 1>Compiling...
>
> 1>TestSliderWidget2D.cxx
>
> 1>Linking...
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class vtkWidgetRepresentation * __thiscall
> vtkAbstractWidget::GetRepresentation(void)"
> (__imp_?GetRepresentation at vtkAbstractWidget
> @@QAEPAVvtkWidgetRepresentation@@XZ) referenced in function "public:
> virtual void __thiscall vtkSlider2DCallback::Execute(class vtkObject
> *,unsigned long,void *)" (?Execute at vtkSlider2DCallback@@UAEXPAVvtkObject@
> @KPAX at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> vtkSliderWidget::SetAnimationModeToAnimate(void)"
> (__imp_?SetAnimationModeToAnimate at vtkSliderWidget@@QAEXXZ) referenced in
> function "int __cdecl TestSliderWidget2D(int,char * * const)"
> (?TestSliderWidget2D@@YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) protected: void __thiscall
> vtkAbstractWidget::SetWidgetRepresentation(class vtkWidgetRepresentation *)"
> (__imp_?SetWidgetRepresentation at vtkAbstractWidget
> @@IAEXPAVvtkWidgetRepresentation@@@Z) referenced in function "int __cdecl
> TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class vtkSliderWidget * __cdecl
> vtkSliderWidget::New(void)" (__imp_?New at vtkSliderWidget@@SAPAV1 at XZ)
> referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)"
> (?TestSliderWidget2D@@YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class vtkCoordinate * __thiscall
> vtkSliderRepresentation2D::GetPoint2Coordinate(void)"
> (__imp_?GetPoint2Coordinate at vtkSliderRepresentation2D
> @@QAEPAVvtkCoordinate@@XZ) referenced in function "int __cdecl
> TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class vtkCoordinate * __thiscall
> vtkSliderRepresentation2D::GetPoint1Coordinate(void)"
> (__imp_?GetPoint1Coordinate at vtkSliderRepresentation2D
> @@QAEPAVvtkCoordinate@@XZ) referenced in function "int __cdecl
> TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> vtkSliderRepresentation::SetValue(double)"
> (__imp_?SetValue at vtkSliderRepresentation@@QAEXN at Z) referenced in function
> "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@
> @YAHHQAPAD at Z)
>
> 1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class vtkSliderRepresentation2D *
> __cdecl vtkSliderRepresentation2D::New(void)"
> (__imp_?New at vtkSliderRepresentation2D@@SAPAV1 at XZ) referenced in function
> "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@
> @YAHHQAPAD at Z)
>
> 1>MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
> referenced in function ___tmainCRTStartup
>
> 1>C:\Users\EDT\Desktop\Slider event\bin\Release\TestSliderWidget2D.exe :
> fatal error LNK1120: 9 unresolved externals
>
> 1>Build log was saved at "file://c:\Users\EDT\Desktop\Slider
> event\bin\TestSliderWidget2D.dir\Release\BuildLog.htm"
>
> 1>TestSliderWidget2D - 10 error(s), 0 warning(s)
>
> 2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32
> ------
>
> 2>Project not selected to build for this solution configuration
>
> ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
>
>
> Ergonomic Design Technology Lab
> Dept. of Industrial and Management Engineering
> Pohang Univ. of Science and Technology
> South Korea
>
> It looks like you have forgotten to link to vtkWidges. Take a look at the
CMakeLists.txt here:
http://www.vtk.org/Wiki/VTK/Examples/Widgets/Slider2D
<http://www.vtk.org/Wiki/VTK/Examples/Widgets/Slider2D>
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/2f679131/attachment.htm>
More information about the vtkusers
mailing list