<style type='text/css'>
.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; }
</style>Dear all,<br />
<br />
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. <br />
<br />
I attached my CMakeLists.txt file and TestSliderWidget2D.cxx file to this email.<br />
<br />
Can anybody know why these kinds of errors occured? Thank you.<br />
<br />
<font size="1">
<p>1>------ Build started: Project: TestSliderWidget2D, Configuration: Release Win32 ------</p>
<p>1>Compiling...</p>
<p>1>TestSliderWidget2D.cxx</p>
<p>1>Linking...</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkWidgetRepresentation * __thiscall vtkAbstractWidget::GetRepresentation(void)" (__imp_?GetRepresentation@vtkAbstractWidget@@QAEPAVvtkWidgetRepresentation@@XZ) referenced in function "public: virtual void __thiscall vtkSlider2DCallback::Execute(class vtkObject *,unsigned long,void *)" (?Execute@vtkSlider2DCallback@@UAEXPAVvtkObject@@KPAX@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkSliderWidget::SetAnimationModeToAnimate(void)" (__imp_?SetAnimationModeToAnimate@vtkSliderWidget@@QAEXXZ) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __thiscall vtkAbstractWidget::SetWidgetRepresentation(class vtkWidgetRepresentation *)" (__imp_?SetWidgetRepresentation@vtkAbstractWidget@@IAEXPAVvtkWidgetRepresentation@@@Z) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkSliderWidget * __cdecl vtkSliderWidget::New(void)" (__imp_?New@vtkSliderWidget@@SAPAV1@XZ) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkCoordinate * __thiscall vtkSliderRepresentation2D::GetPoint2Coordinate(void)" (__imp_?GetPoint2Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkCoordinate * __thiscall vtkSliderRepresentation2D::GetPoint1Coordinate(void)" (__imp_?GetPoint1Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkSliderRepresentation::SetValue(double)" (__imp_?SetValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>TestSliderWidget2D.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkSliderRepresentation2D * __cdecl vtkSliderRepresentation2D::New(void)" (__imp_?New@vtkSliderRepresentation2D@@SAPAV1@XZ) referenced in function "int __cdecl TestSliderWidget2D(int,char * * const)" (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1>MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup</p>
<p>1>C:\Users\EDT\Desktop\Slider event\bin\Release\TestSliderWidget2D.exe : fatal error LNK1120: 9 unresolved externals</p>
<p>1>Build log was saved at "file://c:\Users\EDT\Desktop\Slider event\bin\TestSliderWidget2D.dir\Release\BuildLog.htm"</p>
<p>1>TestSliderWidget2D - 10 error(s), 0 warning(s)</p>
<p>2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------</p>
<p>2>Project not selected to build for this solution configuration</p>
<p>========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========</p>
</font><br><br><style>
BODY{FONT-SIZE: 10pt;}
DIV, P {FONT-SIZE: 10pt;margin-top:2px;margin-bottom:2px;}
TD {FONT-SIZE: 10pt}
</style>
<body leftmargin=1 topmargin=1>
Ergonomic Design Technology Lab<BR>
Dept. of Industrial and Management Engineering<BR>
Pohang Univ. of Science and Technology<BR>
South Korea<BR>
Tel: 82-54-279-8246<BR>
HP: 82-10-9794-0110</body>
<img src="http://mail.postech.ac.kr:80/receiveMDNResponse.do?from=yxp233@postech.ac.kr&to=vtkusers@vtk.org&mid=14879119.1279023803191.JavaMail.root%40mail1.postech.ac.kr&store=%2Fstore01%2Fmindex%2F382%2Fyxp233&host=mail.postech.ac.kr" height=1 width=1>