<div dir="ltr"><div style class="markdown-here-wrapper" id="markdown-here-wrapper-369271"><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">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;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>