I think I already know, what you meant - you tought to add to &quot;Additional Dependencies&quot; under &quot;Project Properties&quot; directly the library &quot;ITKBasicFilters.lib&quot;, but I can&#39;t locate this lib  in library folder &quot;\lib\Debug&quot; under the ITKv4 build.<br>
<br>I tried to add this lib file from build of ITK 3.20, where is this file present (in bin\Debug) and now it works!<br><br>But now I have to use build of ITKv4 (which I use normally) and also the build of ITKv3.20 (from which I use only the ITKBasicFilters.lib). <br>
<br>Is there some way to get ITKBasicFilters.lib from build of ITKv4?<br><br>Thanks.<br><br>Michal<br><br><div class="gmail_quote">2011/4/11 Bc. Michal Srna <span dir="ltr">&lt;<a href="mailto:michal@srna.info">michal@srna.info</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Thanks for reply Luis,<br><br>I have located the file &quot;itkVTKImageExportBase.cxx&quot; in <br><br>
InsightToolkit_SOURCE_DIR\<div>Modules\Bridge\VTK\src<br><br>because I use ITKv4 from git.<br><br>I don&#39;t know If I understood you right - I added that folder (InsightToolkit_SOURCE_DIR\Modules\Bridge\VTK\src),
 which contains file &quot;itkVTKImageExportBase.cxx&quot; into Additional Library
 Directories under my project properties in MVSC++, but nothing 
happened.<br>
<br>Am I doing something wrong?<br><br>Thanks for help in advance!</div><br><br></div><div class="gmail_quote"><div class="im">2011/4/11 Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>&gt;</span><br>

</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michal,<br>
<br>
<br>
You are missing to link to the library<br>
<br>
                        ITKBasicFilters<br>
<br>
<br>
In general, whenever you get a link error about missing<br>
symbols, you could try greping for that symbol in the<br>
source tree of the toolkit (that&#39;s the beauty of open source).<br>
<br>
In this case, if you grep for the symbol with the command:<br>
<br>
               grep -lr GetCallbackUserData *<br>
<br>
you will get:<br>
<br>
Code/BasicFilters/itkVTKImageExportBase.h<br>
Code/BasicFilters/itkVTKImageExportBase.cxx<br>
Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/src/itkVTKImageToImageFilter.txx<br>
Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/src/itkImageToVTKImageFilter.txx<br>
<br>
<br>
you can discard the hits in the Wrapping directory<br>
(unless you are doing wrapping, of course).<br>
<br>
<br>
So you are left with a .cxx file in the directory<br>
<br>
             Code/BasicFilters<br>
<br>
If you then open the CMakeLists.txt file and search<br>
for &quot;itkVTKImageExportBase.cxx&quot; you will find it in<br>
the line:<br>
<br>
ADD_LIBRARY(ITKBasicFilters itkVTKImageExportBase.cxx)<br>
<br>
Which states the the itkVTKImageExportBase.cxx will be<br>
used to create the library &quot;ITKBasicFilters&quot;.<br>
<br>
<br>
Therefore,...<br>
you can resolve the missing symbol by adding<br>
<br>
                    ITKBasicFilters<br>
<br>
to your list of libraries to link against.<br>
<br>
<br>
---------------------------------------------------------------------<br>
<br>
<br>
   &quot;Glimpsing at the Source<br>
     leavers no doubt&quot;<br>
<br>
                           Ming Dao<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
<br>
     Luis<br>
<br>
<br>
------------------------------------------------<br>
<div>On Sun, Apr 10, 2011 at 1:08 PM, Bc. Michal Srna &lt;<a href="mailto:michal@srna.info" target="_blank">michal@srna.info</a>&gt; wrote:<br>
</div><div><div></div><div>&gt; Hello VTK users,<br>
&gt;<br>
&gt; in my project I use ITKv4 and now I would like to use some features of VTK.<br>
&gt; I downloaded the latest version vtk-5.6.1, used CMAKE, without errors build<br>
&gt; VTK with MVSC++ 2008 and added path to all VTK libraries to project<br>
&gt; properties. I also added all VTK *.lib files to Additional Dependencies<br>
&gt; under project properties.<br>
&gt;<br>
&gt; Now I want only to connect output of ITK pipeline to VTK, the code is:<br>
&gt;<br>
&gt; typedef itk::ImageToVTKImageFilter&lt;TransformedImageType&gt; ConnectorType;<br>
&gt; ConnectorType::Pointer connector= ConnectorType::New();<br>
&gt;<br>
&gt; connector-&gt;SetInput( TransformedImportFilter-&gt;GetOutput() );<br>
&gt;<br>
&gt; where TransformedImportFilter is ITK output of ImportImageFilter.<br>
&gt;<br>
&gt; I also included this headers:<br>
&gt;<br>
&gt; #include &quot;itkImageToVTKImageFilter.h&quot;<br>
&gt;<br>
&gt; When I want to compile my project, I get these errors:<br>
&gt;<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: void * __thiscall<br>
&gt; itk::VTKImageExportBase::GetCallbackUserData(void)&quot;<br>
&gt; (?GetCallbackUserData@VTKImageExportBase@itk@@QAEPAXXZ) referenced in<br>
&gt; function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class<br>
&gt; itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: void * (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetBufferPointerCallback(void)const )(void *)&quot;<br>
&gt; (?GetBufferPointerCallback@VTKImageExportBase@itk@@QBEP6APAXPAX@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: int * (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetDataExtentCallback(void)const )(void *)&quot;<br>
&gt; (?GetDataExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ) referenced<br>
&gt; in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class<br>
&gt; itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: void (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetUpdateDataCallback(void)const )(void *)&quot;<br>
&gt; (?GetUpdateDataCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ) referenced<br>
&gt; in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class<br>
&gt; itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: void (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetPropagateUpdateExtentCallback(void)const )(void<br>
&gt; *,int *)&quot;<br>
&gt; (?GetPropagateUpdateExtentCallback@VTKImageExportBase@itk@@QBEP6AXPAXPAH@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: int (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetNumberOfComponentsCallback(void)const )(void *)&quot;<br>
&gt; (?GetNumberOfComponentsCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: char const * (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetScalarTypeCallback(void)const )(void *)&quot;<br>
&gt; (?GetScalarTypeCallback@VTKImageExportBase@itk@@QBEP6APBDPAX@ZXZ) referenced<br>
&gt; in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class<br>
&gt; itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall<br>
&gt; itk::VTKImageExportBase::GetOriginCallback(void)const &quot;<br>
&gt; (?GetOriginCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall<br>
&gt; itk::VTKImageExportBase::GetSpacingCallback(void)const &quot;<br>
&gt; (?GetSpacingCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: int * (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetWholeExtentCallback(void)const )(void *)&quot;<br>
&gt; (?GetWholeExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: int (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetPipelineModifiedCallback(void)const )(void *)&quot;<br>
&gt; (?GetPipelineModifiedCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;public: void (__cdecl*__thiscall<br>
&gt; itk::VTKImageExportBase::GetUpdateInformationCallback(void)const )(void *)&quot;<br>
&gt; (?GetUpdateInformationCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ)<br>
&gt; referenced in function &quot;protected: __thiscall<br>
&gt; itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;protected: __thiscall itk::VTKImageExportBase::VTKImageExportBase(void)&quot;<br>
&gt; (??0VTKImageExportBase@itk@@IAE@XZ) referenced in function &quot;protected:<br>
&gt; __thiscall itk::VTKImageExport&lt;class itk::Image&lt;short,3&gt;<br>
&gt;&gt;::VTKImageExport&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot;<br>
&gt; (??0?$VTKImageExport@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol<br>
&gt; &quot;protected: virtual void __thiscall<br>
&gt; itk::VTKImageExportBase::UpdateInformationCallback(void)&quot;<br>
&gt; (?UpdateInformationCallback@VTKImageExportBase@itk@@MAEXXZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol<br>
&gt; &quot;protected: virtual int __thiscall<br>
&gt; itk::VTKImageExportBase::PipelineModifiedCallback(void)&quot;<br>
&gt; (?PipelineModifiedCallback@VTKImageExportBase@itk@@MAEHXZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol<br>
&gt; &quot;protected: virtual void __thiscall<br>
&gt; itk::VTKImageExportBase::UpdateDataCallback(void)&quot;<br>
&gt; (?UpdateDataCallback@VTKImageExportBase@itk@@MAEXXZ)<br>
&gt; 1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol<br>
&gt; &quot;protected: virtual void __thiscall itk::VTKImageExportBase::PrintSelf(class<br>
&gt; std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class<br>
&gt; itk::Indent)const &quot;<br>
&gt; (?PrintSelf@VTKImageExportBase@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<br>
&gt;<br>
&gt; Don&#39;t know, what am I doing wrong?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Michal<br>
&gt;<br>
&gt; Faculty of Biomedical Engineering CTU<br>
&gt;<br>
</div></div><div><div></div><div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div></div></div><br><br clear="all"><div><div></div><div class="h5"><br>-- <br>S pozdravem Bc. Michal Srna<br><br>Fotografické portfolio:<br><a href="http://michalsrna.cz" target="_blank">http://michalsrna.cz</a><br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br>S pozdravem Bc. Michal Srna<br><br>Fotografické portfolio:<br><a href="http://michalsrna.cz">http://michalsrna.cz</a><br>