<div>Hello, Luis and All,</div>
<div> </div>
<div>Good day, i have met some problem building ITK. since i perfer to use tcl as wrapper language rather than C++, it seems that i need cswig to make it happened.</div>
<div> </div>
<div>and i download the cswig from the website, and unzipped under C:\InsightToolkit-3.2.0\Utilities\ which is my ITK source utilities folder.</div>
<div>my building directory i set it to C:\ITK</div>
<div> </div>
<div>then</div>
<div>for the Cmake i enabled </div>
<div><em></em> </div>
<div><em></em>BUILD_SHARED_LIBRARIES </div>
<div>ITK_CSWIG_TCL</div>
<div> </div>
<div>my tcl is decently installed and works fine with my VTK.</div>
<div> </div>
<div>OS : WindowXP, </div>
<div>Compiler: MSDEV 6.0(without any patches applied)</div>
<div> </div>
<div>some errors returned as below and the building process stopped then.</div>
<div> </div>
<div>floatformat.c<br>C:\InsightToolkit-3.2.0\Utilities\CableSwig\GCC\libiberty\floatformat.c(27) : error C2371: 'memcpy' : redefinition; different basic types<br>C:\InsightToolkit-3.2.0\Utilities\CableSwig\GCC\libiberty\floatformat.c
(28) : error C2371: 'memset' : redefinition; different basic types<br>objalloc.c<br>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\stddef.h(71) : note C6311: C:\InsightToolkit-3.2.0\Utilities\CableSwig\GCC\include\objalloc.h
(61) : see previous definition of 'offsetof'</div>
<div> </div>
<div> </div>
<div>i did read some messages in this mailing list. such as </div>
<div><a href="http://www.itk.org/pipermail/insight-users/2004-July/009522.html">http://www.itk.org/pipermail/insight-users/2004-July/009522.html</a> </div>
<div>the person had some problem as i do, he was using java but mine is tcl. </div>
<div> </div>
<div>then i took the advice</div>
<div>"adding "/Za" to the CMAKE_C_FLAGS"</div>
<div> </div>
<div>and it made more pain, and loads of errors came out.</div>
<div> </div>
<div>so please give me some advice to above problem. </div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div>Yours</div>
<div> </div>
<div>O.Spring</div>
<div> </div>
<div> </div>