What versions of CMake and Visual studio are you using?<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 9:54 AM, kmudrovcic <span dir="ltr">&lt;<a href="mailto:kmudrovcic@gmail.com">kmudrovcic@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, i&#39;m trying to compile VTK 5.8.0 with BUILD_SHARED_LIBS ON but sometimes i<br>
get this error message.<br>
<br>
Any help?<br>
<br>
Thanks<br>
<br>
Link:<br>
39&gt;     Creating library<br>
C:/vtk580/build_shared_release/bin/Release/vtkIO.lib and object<br>
C:/vtk580/build_shared_release/bin/Release/vtkIO.exp<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFClose@4 referenced in function &quot;public: void __thiscall<br>
vtkTIFFReaderInternal::Clean(void)&quot; (?Clean@vtkTIFFReaderInternal@@QAEXXZ)<br>
39&gt;vtkTIFFWriter.obj : error LNK2001: unresolved external symbol<br>
_vtk_TIFFClose@4<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFSetWarningHandler@4 referenced in function &quot;public: __thiscall<br>
vtkTIFFReaderInternal::vtkTIFFReaderInternal(void)&quot;<br>
(??0vtkTIFFReaderInternal@@QAE@XZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFSetErrorHandler@4 referenced in function &quot;public: __thiscall<br>
vtkTIFFReaderInternal::vtkTIFFReaderInternal(void)&quot;<br>
(??0vtkTIFFReaderInternal@@QAE@XZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFReadTile@24 referenced in function &quot;public: virtual void __thiscall<br>
vtkTIFFReader::ReadTiles(void *)&quot; (?ReadTiles@vtkTIFFReader@@UAEXPAX@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk__TIFFfree@4 referenced in function &quot;protected: void __thiscall<br>
vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned<br>
int)&quot; (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFReadScanline@16 referenced in function &quot;protected: void __thiscall<br>
vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned<br>
int)&quot; (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk__TIFFmalloc@4 referenced in function &quot;protected: void __thiscall<br>
vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned<br>
int)&quot; (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFScanlineSize@4 referenced in function &quot;protected: void __thiscall<br>
vtkTIFFReader::ReadTwoSamplesPerPixelImage(void *,unsigned int,unsigned<br>
int)&quot; (?ReadTwoSamplesPerPixelImage@vtkTIFFReader@@IAEXPAXII@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFReadRGBAImage@20 referenced in function &quot;public: void __thiscall<br>
vtkTIFFReader::ReadImageInternal(void *,void *,int *,unsigned int)&quot;<br>
(?ReadImageInternal@vtkTIFFReader@@QAEXPAX0PAHI@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFReadDirectory@4 referenced in function &quot;public: virtual void<br>
__thiscall vtkTIFFReader::ReadVolume(void *)&quot;<br>
(?ReadVolume@vtkTIFFReader@@UAEXPAX@Z)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFSetDirectory@8 referenced in function &quot;public: int __thiscall<br>
vtkTIFFReaderInternal::Initialize(void)&quot;<br>
(?Initialize@vtkTIFFReaderInternal@@QAEHXZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFNumberOfTiles@4 referenced in function &quot;public: int __thiscall<br>
vtkTIFFReaderInternal::Initialize(void)&quot;<br>
(?Initialize@vtkTIFFReaderInternal@@QAEHXZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFIsTiled@4 referenced in function &quot;public: int __thiscall<br>
vtkTIFFReaderInternal::Initialize(void)&quot;<br>
(?Initialize@vtkTIFFReaderInternal@@QAEHXZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFNumberOfDirectories@4 referenced in function &quot;public: int<br>
__thiscall vtkTIFFReaderInternal::Initialize(void)&quot;<br>
(?Initialize@vtkTIFFReaderInternal@@QAEHXZ)<br>
39&gt;vtkTIFFReader.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFOpen@8 referenced in function &quot;public: int __thiscall<br>
vtkTIFFReaderInternal::Open(char const *)&quot;<br>
(?Open@vtkTIFFReaderInternal@@QAEHPBD@Z)<br>
39&gt;vtkTIFFWriter.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFWriteScanline@16 referenced in function &quot;protected: virtual void<br>
__thiscall vtkTIFFWriter::WriteFile(class std::basic_ofstream&amp;lt;char,struct<br>
std::char_traits&amp;lt;char&amp;gt; &gt; *,class vtkImageData *,int * const)&quot;<br>
(?WriteFile@vtkTIFFWriter@@MAEXPAV?$basic_ofstream@DU?$char_traits@D@std@@@std@@PAVvtkImageData@@QAH@Z)<br>
39&gt;vtkTIFFWriter.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFDefaultStripSize@8 referenced in function &quot;protected: virtual void<br>
__thiscall vtkTIFFWriter::WriteFileHeader(class<br>
std::basic_ofstream&amp;lt;char,struct std::char_traits&amp;lt;char&amp;gt; &gt; *,class<br>
vtkImageData *)&quot;<br>
(?WriteFileHeader@vtkTIFFWriter@@MAEXPAV?$basic_ofstream@DU?$char_traits@D@std@@@std@@PAVvtkImageData@@@Z)<br>
39&gt;vtkTIFFWriter.obj : error LNK2019: unresolved external symbol<br>
_vtk_TIFFClientOpen@40 referenced in function &quot;protected: virtual void<br>
__thiscall vtkTIFFWriter::WriteFileHeader(class<br>
std::basic_ofstream&amp;lt;char,struct std::char_traits&amp;lt;char&amp;gt; &gt; *,class<br>
vtkImageData *)&quot;<br>
(?WriteFileHeader@vtkTIFFWriter@@MAEXPAV?$basic_ofstream@DU?$char_traits@D@std@@@std@@PAVvtkImageData@@@Z)<br>
39&gt;C:\vtk580\build_shared_release\bin\Release\vtkIO.dll : fatal error<br>
LNK1120: 18 unresolved externals<br>
39&gt;<br>
39&gt;Build FAILED.<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-linking-problem-vtkTIFF-tp4794274p4794274.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-linking-problem-vtkTIFF-tp4794274p4794274.html</a><br>


Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>