[vtkusers] Test Slider Widget 2D

Xiaopeng Yang yxp233 at postech.ac.kr
Tue Jul 13 08:23:23 EDT 2010


.Bold { font-weight: bold; }
.Title { font-weight: bold; font-size: 18px; color: #cc3300; }
.Code { border: #8b4513 1px solid; padding-right: 5px; padding-left: 5px;color: #000066; font-family: 'Courier New' , Monospace;background-color: #ff9933; }

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 ==========



BODY{FONT-SIZE: 10pt;}
DIV, P {FONT-SIZE: 10pt;margin-top:2px;margin-bottom:2px;}
TD {FONT-SIZE: 10pt}




Ergonomic Design Technology Lab

Dept. of Industrial and Management Engineering

Pohang Univ. of Science and Technology

South Korea

Tel: 82-54-279-8246

HP: 82-10-9794-0110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/9c7de132/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt
Type: application/octet-stream
Size: 465 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/9c7de132/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestSliderWidget2D.cxx
Type: application/octet-stream
Size: 22063 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/9c7de132/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 39 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/9c7de132/attachment.vcf>


More information about the vtkusers mailing list