Hi everybody,<br>Until now, I used shared VTK library (DLL). <br>Today, I want to use a static library.<br>I set the VTK_Shared_Libs at false. I generate a vtk solution. I compile this project.<br>On my project, I configure the path include and the libs dependency.<br>

Unfortunately, I have errors when I compile my project. <br><br>My path includes:<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-solution&quot;;<br><div id=":104" class="ii gt">&quot;C:\vtk-5.4.2\vtk-5.4.2-source&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\&quot;;<br>

&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Common&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Filtering&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\GenericFiltering&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Graphics&quot;;<br>

&quot;C:\vtk-5.4.2\vtk-5.4.2-source\GUISupport&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Hybrid&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Imaging&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\IO&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Parallel&quot;;<br>

&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Rendering&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Utilities&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Views&quot;;<br>&quot;C:\vtk-5.4.2\vtk-5.4.2-source\VolumeRendering&quot;;<br>

&quot;C:\vtk-5.4.2\vtk-5.4.2-source\Widgets&quot;<br><br>My libs dependency:<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkCommon.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkDICOMParser.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkFiltering.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkGenericFiltering.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkGraphics.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkHybrid.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkImaging.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkIO.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkNetCDF.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkRendering.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkVolumeRendering.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkWidgets.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkSys.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkalglib.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkexoIIc.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkexpat.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkfreetype.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkftgl.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkjpeg.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtklibxml2.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkmetaio.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkParallel.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkpng.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkproj4.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtksqlite.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtktiff.lib<br>C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkverdict.lib<br>

C:\vtk-5.4.2\vtk-5.4.2-solution\bin\release/vtkzlib.lib<br><br><br>Errors:<br><br>Erreur   
1    error LNK2019: symbole externe non résolu __imp__DefWindowProcA@16
référencé dans la fonction &quot;long __stdcall vtkWin32OutputWindowWndProc(struct HWND__ *,unsigned int,unsigned int,long)&quot; (?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ@Z)    vtkCommon.lib    <br>
Erreur    2    error LNK2001: symbole externe non résolu __imp__DefWindowProcA@16    vtkRendering.lib    <br>Erreur   
3    error LNK2019: symbole externe non résolu __imp__MoveWindow@24
référencé dans la fonction &quot;long __stdcall vtkWin32OutputWindowWndProc(struct HWND__ *,unsigned int,unsigned int,long)&quot; (?vtkWin32OutputWindowWndProc@@YGJPAUHWND__@@IIJ@Z)    vtkCommon.lib    <br>
Erreur    4    error LNK2019: symbole externe non résolu
__imp__ShowWindow@8 référencé dans la fonction &quot;protected: static int
__cdecl vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    5    error LNK2001: symbole externe non résolu __imp__ShowWindow@8    vtkRendering.lib    <br>Erreur   
6    error LNK2019: symbole externe non résolu __imp__SendMessageA@16
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    7    error LNK2019: symbole externe non résolu
__imp__CreateWindowExA@48 référencé dans la fonction &quot;protected: static
int __cdecl vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    8    error LNK2001: symbole externe non résolu __imp__CreateWindowExA@48    vtkRendering.lib    <br>Erreur   
9    error LNK2019: symbole externe non résolu __imp__RegisterClassA@4
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    10    error LNK2001: symbole externe non résolu __imp__RegisterClassA@4    vtkRendering.lib    <br>Erreur   
11    error LNK2019: symbole externe non résolu __imp__GetStockObject@4
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    12    error LNK2001: symbole externe non résolu __imp__GetStockObject@4    vtkRendering.lib    <br>Erreur   
13    error LNK2019: symbole externe non résolu __imp__LoadCursorA@8
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    14    error LNK2001: symbole externe non résolu __imp__LoadCursorA@8    vtkRendering.lib    <br>Erreur   
15    error LNK2019: symbole externe non résolu __imp__LoadIconA@8
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    16    error LNK2001: symbole externe non résolu __imp__LoadIconA@8    vtkRendering.lib    <br>Erreur   
17    error LNK2019: symbole externe non résolu __imp__GetClassInfoA@12
référencé dans la fonction &quot;protected: static int __cdecl
vtkWin32OutputWindow::Initialize(void)&quot; (?Initialize@vtkWin32OutputWindow@@KAHXZ)    vtkCommon.lib    <br>
Erreur    18    error LNK2001: symbole externe non résolu __imp__GetClassInfoA@12    vtkRendering.lib    <br>Erreur   
19    error LNK2019: symbole externe non résolu __imp__MessageBoxA@16
référencé dans la fonction &quot;protected: void __thiscall
vtkWin32OutputWindow::PromptText(char const *)&quot; (?PromptText@vtkWin32OutputWindow@@IAEXPBD@Z)    vtkCommon.lib    <br>
Erreur    20    error LNK2001: symbole externe non résolu __imp__MessageBoxA@16    vtkCommon.lib    <br>Erreur    21    error LNK2001: symbole externe non résolu __imp__MessageBoxA@16    vtkRendering.lib    <br>Erreur    22    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>

Erreur    23    error LNK2019: symbole externe non résolu
__imp__glGetIntegerv@8 référencé dans la fonction &quot;protected:
__thiscall vtkOpenGLHardwareSupport::vtkOpenGLHardwareSupport(void)&quot; (??0vtkOpenGLHardwareSupport@@IAE@XZ)    vtkRendering.lib    <br>
Erreur    24    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>Erreur    25    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>Erreur    26    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>

Erreur    27    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>Erreur    28    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>Erreur    29    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>

Erreur    30    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib    <br>Erreur    31    error LNK2001: symbole externe non résolu __imp__glGetIntegerv@8    vtkRendering.lib   <br><br><br>
Have you any idea?<br>Thx<br></div>