<div dir="ltr"><div><div><div>Hello again,<br><br></div>we have found out that adding the ITKReview-4.3.lib library to the Properties > "Additional Dependencies" for both the igstkTests and igstkStateMachineExportTest projects solves this issue. <br>

<br></div>We bet this should be tackled at a CMake level, by editing the appropriate CMakeLists.txt file to include this "ITKReview" library (maybe using ${ITK_LIBRARIES}?).<br><br></div>Best,  Frederic<br></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 3:39 PM, Frederic Perez <span dir="ltr"><<a href="mailto:frederic.perez@alma3d.com" target="_blank">frederic.perez@alma3d.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><p style="margin:1.2em 0px!important">Hello igstk-users,</p>
<p style="margin:1.2em 0px!important">I've tried to build binaries for IGSTK 5.2 for Visual Studio 2012, knowing its requirements from<br><a href="http://public.kitware.com/IGSTKWIKI/index.php/Download_IGSTK#IGSTK_5.2_Requirements" target="_blank">http://public.kitware.com/IGSTKWIKI/index.php/Download_IGSTK#IGSTK_5.2_Requirements</a></p>



<p style="margin:1.2em 0px!important">Concretely, I'm using as base libraries ITK 4.3.1 ("ITK   4.2.0 or later ") and VTK 5.10.1 ("VTK   5.10.0 or later") generating .sln solutions with CMake 2.8.10.2 ("CMake  2.8 or later").</p>



<p style="margin:1.2em 0px!important">Unfortunately I get error messages at the linking stage, such as<br>2>     Creating library C:/bin/igstk/5.2/11-d-b/bin/Debug/igstkStateMachineExportTest.lib and object C:/bin/igstk/5.2/11-d-b/bin/Debug/igstkStateMachineExportTest.exp<br>


2>IGSTK.lib(igstkMRImageSpatialObjectRepresentation.obj) : error LNK2001: unresolved external symbol "void <strong>cdecl itk::MRCImageIOFactoryRegister</strong>Private(void)" (?MRCImageIOFactoryRegister__Private@itk@@YAXXZ)</p>



<p style="margin:1.2em 0px!important">Browsing the ITK source files I found the problematic function In itkMRCImageIOFactory.cxx, in case this helps:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;overflow:auto;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px 3px 3px 3px;display:inline;white-space:pre-wrap;border-radius:3px 3px 3px 3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background:none repeat scroll 0% 0% rgb(248,248,255)">// Undocumented API used to register during static initialization.
// DO NOT CALL DIRECTLY.

static bool MRCImageIOFactoryHasBeenRegistered;

void MRCImageIOFactoryRegister__Private(void)
{
  if( ! MRCImageIOFactoryHasBeenRegistered )
    {
    MRCImageIOFactoryHasBeenRegistered = true;
    MRCImageIOFactory::RegisterOneFactory();
    }
}</code></pre>
<p style="margin:1.2em 0px!important">Thanks for any feedback,</p>
<p style="margin:1.2em 0px!important">Frederic</p>
</div></div>
</blockquote></div><br></div>