<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.&nbsp;I succedded in&nbsp;generating C++ project file by Cmake. However, when I&nbsp;release the project,&nbsp;errors occured.&nbsp;<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&gt;------ Build started: Project: TestSliderWidget2D, Configuration: Release Win32 ------</p>
<p>1&gt;Compiling...</p>
<p>1&gt;TestSliderWidget2D.cxx</p>
<p>1&gt;Linking...</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class vtkWidgetRepresentation * __thiscall vtkAbstractWidget::GetRepresentation(void)&quot; (__imp_?GetRepresentation@vtkAbstractWidget@@QAEPAVvtkWidgetRepresentation@@XZ) referenced in function &quot;public: virtual void __thiscall vtkSlider2DCallback::Execute(class vtkObject *,unsigned long,void *)&quot; (?Execute@vtkSlider2DCallback@@UAEXPAVvtkObject@@KPAX@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: void __thiscall vtkSliderWidget::SetAnimationModeToAnimate(void)&quot; (__imp_?SetAnimationModeToAnimate@vtkSliderWidget@@QAEXXZ) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) protected: void __thiscall vtkAbstractWidget::SetWidgetRepresentation(class vtkWidgetRepresentation *)&quot; (__imp_?SetWidgetRepresentation@vtkAbstractWidget@@IAEXPAVvtkWidgetRepresentation@@@Z) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: static class vtkSliderWidget * __cdecl vtkSliderWidget::New(void)&quot; (__imp_?New@vtkSliderWidget@@SAPAV1@XZ) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class vtkCoordinate * __thiscall vtkSliderRepresentation2D::GetPoint2Coordinate(void)&quot; (__imp_?GetPoint2Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class vtkCoordinate * __thiscall vtkSliderRepresentation2D::GetPoint1Coordinate(void)&quot; (__imp_?GetPoint1Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: void __thiscall vtkSliderRepresentation::SetValue(double)&quot; (__imp_?SetValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;TestSliderWidget2D.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: static class vtkSliderRepresentation2D * __cdecl vtkSliderRepresentation2D::New(void)&quot; (__imp_?New@vtkSliderRepresentation2D@@SAPAV1@XZ) referenced in function &quot;int __cdecl TestSliderWidget2D(int,char * * const)&quot; (?TestSliderWidget2D@@YAHHQAPAD@Z)</p>
<p>1&gt;MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup</p>
<p>1&gt;C:\Users\EDT\Desktop\Slider event\bin\Release\TestSliderWidget2D.exe : fatal error LNK1120: 9 unresolved externals</p>
<p>1&gt;Build log was saved at &quot;file://c:\Users\EDT\Desktop\Slider event\bin\TestSliderWidget2D.dir\Release\BuildLog.htm&quot;</p>
<p>1&gt;TestSliderWidget2D - 10 error(s), 0 warning(s)</p>
<p>2&gt;------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------</p>
<p>2&gt;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>