<br>Hi Xiaofeng,<br><br><br>     Thanks for sharing your findings.<br><br>Yes, you are in the right track.<br><br>We are trying to figure our what will be the <br>right definition of this macro (and others).<br><br>So far, we have finding that we need to add<br>
some<br><br>    #ifdef (_MSC_VER &lt; 1600 )<br>       <br>    #else<br>       // Code for VS 10<br>    #endif<br><br>mostly for the lines that you are commenting<br>out in itk_hashtable.h<br><br><br>      Thanks<br><br><br>
           Luis<br><br><br>--------------------------------------------------------------<br><div class="gmail_quote">On Thu, Apr 22, 2010 at 2:59 PM, Xiaofeng Z <span dir="ltr">&lt;<a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
I was able to derive a workaround to get ITK to compile by VS 2010.  This involves changing a few source code files:<br>
<br>
1. add &quot;#define ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_NULL_STRING&quot; in &quot;itkMacro.h&quot; before line 750<br>
<br>
2. comment out line 1148-1155 in file &quot;itk_hashtable.h&quot;<br>
<br>
3. add &quot;#include &lt;iterator&gt;&quot; to &quot;itkMesh.txx&quot;<br>
<br>
Hope this helps!<br>
<br>
<br>
Xiaofeng Z<br>
<br>
<br>
<br>
<br>
________________________________<br>
&gt; Date: Thu, 22 Apr 2010 11:15:40 -0400<br>
&gt; Subject: Re: [Insight-users] building itk using visual studio 2010<br>
&gt; From: <a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a><br>
&gt; To: <a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a><br>
&gt; CC: <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>; <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
<div class="im">&gt;<br>
&gt;<br>
&gt; Hi Xiaofeng,<br>
&gt;<br>
&gt; We are setting up a Nightly build of ITK with Visual Studio 10,<br>
&gt; that will post to the ITK Dashboard.<br>
&gt;<br>
&gt; <a href="http://www.cdash.org/CDash/index.php?project=Insight" target="_blank">http://www.cdash.org/CDash/index.php?project=Insight</a><br>
&gt;<br>
&gt;<br>
&gt; That will help us ensure that VS10 is supported, and that<br>
&gt; it remains supported on a permanent basis.<br>
&gt;<br>
&gt;<br>
&gt; Stay tunned....<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt;<br>
&gt; Luis<br>
&gt;<br>
&gt;<br>
&gt; --------------------------------------------------------------------<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; On Thu, Apr 22, 2010 at 10:59 AM, Xiaofeng Z&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Is there any workaround before a permanent solution is worked out?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Xiaofeng Z<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------<br>
&gt;<br>
&gt;&gt; CC: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
&gt;<br>
&gt;&gt; From: <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
&gt;<br>
&gt;&gt; To: <a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a><br>
&gt;<br>
&gt;&gt; Subject: Re: [Insight-users] (no subject)<br>
&gt;<br>
&gt;&gt; Date: Thu, 22 Apr 2010 10:15:08 -0400<br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;&gt; It seems that ITK 3.18 will NOT compile against VS 2010:<br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;&gt; From an April 19, 2010 Posting to this list from Luis Ibanez<br>
&gt;<br>
&gt;&gt;&gt; Hi Mostafizur,<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; ITK (any version) does not support Visual Studio 10 yet.<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; There were some structural changes made to Visual Studio 10,<br>
&gt;<br>
&gt;&gt;&gt; that require CMake to manage the configuration process in a<br>
&gt;<br>
&gt;&gt;&gt; way different from what is done with Visual Studio 9.<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; We will have Visual Studio 10 support for ITK in our top priorities<br>
&gt;<br>
&gt;&gt;&gt; for the development cycle of ITK 3.19.<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Luis<br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;&gt; --<br>
&gt;<br>
&gt;&gt; Mike J.<br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;&gt; On Apr 22, 2010, at 10:01 AM, Xiaofeng Z wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Anyone able to compile itk in Visual Studio 2010? I&#39;m getting large<br>
&gt;<br>
&gt;&gt;&gt; amount of errors. The first one is:<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; 50&gt;d:\nyph\imaging\source\insighttoolkit-3.18.0\code\common<br>
&gt;<br>
&gt;&gt;&gt; \itk_hashtable.h(474): error C2146: syntax error : missing &#39;;&#39;<br>
&gt;<br>
&gt;&gt;&gt; before identifier &#39;ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT&#39;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Is there anything I need to change in CMake? The only thing I<br>
&gt;<br>
&gt;&gt;&gt; changed was to turn on BUILD_SHARED_LIBS.<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Thanks!<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Xiaofeng Z<br>
&gt;<br>
&gt;&gt;&gt; _________________________________________________________________<br>
&gt;<br>
&gt;&gt;&gt; The New Busy is not the old busy. Search, chat and e-mail from your<br>
&gt;<br>
&gt;&gt;&gt; inbox.<br>
&gt;<br>
&gt;&gt;&gt; <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3</a><br>

&gt;<br>
&gt;<br>
&gt;&gt;&gt; _____________________________________<br>
&gt;<br>
&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;<br>
&gt;&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;<br>
&gt;&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _________________________________________________________________<br>
&gt;<br>
&gt; The New Busy is not the old busy. Search, chat and e-mail from your inbox.<br>
&gt;<br>
&gt; <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3</a><br>

&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt;<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;<br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</div></div><div class="hm">_________________________________________________________________<br>
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.<br>
<a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2" target="_blank">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2</a></div>
</blockquote></div><br>