<div>Dear Cory,</div>
<div> </div>
<div>I did not use &quot;using namespace itk&quot; anywhere in my code.</div>
<div> </div>
<div>Thanks!</div>
<div>Yihui<br><br></div>
<div class="gmail_quote">2011/3/29 Cory Quammen <span dir="ltr">&lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Yihui,<br><br>Do you have the line<br><br> using namespace itk;<br><br>anywhere in your code? If so, I suggest removing it and instead<br>
reference ITK classes by their fully qualified names, e.g.,<br>itk::Image, itk::DiscreteGaussianImageFilter, etc.<br><br>Using the itk namespace pollutes the root namespace, leading to errors<br>like the kind you are getting.<br>
<br>Cory<br>
<div>
<div></div>
<div class="h5"><br>On Tue, Mar 29, 2011 at 3:48 AM, yihui cao &lt;<a href="mailto:yihuicao1987@gmail.com">yihuicao1987@gmail.com</a>&gt; wrote:<br>&gt; The problem occured at<br>&gt; D:\InsightToolkit-3.18.0\InsightToolkit-3.18.0\Utilities\gdcm\src\gdcmSerieHelper.h(109)<br>
&gt;<br>&gt; 2011/3/29 yihui cao &lt;<a href="mailto:yihuicao1987@gmail.com">yihuicao1987@gmail.com</a>&gt;<br>&gt;&gt;<br>&gt;&gt; Dear professor,<br>&gt;&gt;<br>&gt;&gt; I writen a code of ITK. It occured a error: error C2872:<br>
&gt;&gt; “uint16_t”:   ambiguous symbol      it may<br>&gt;&gt; be“d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\utilities\gdcm\src\gdcmCommon.h(65)<br>&gt;&gt; : unsigned short<br>&gt;&gt; uint16_t” or “d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itkIntTypes.h(152)<br>
&gt;&gt; : itk::uint16_t”<br>&gt;&gt;<br>&gt;&gt; What can I do to solve this problem?<br>&gt;&gt;<br>&gt;&gt; Thanks!<br>&gt;&gt; yihui<br>&gt;<br></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; Kitware offers ITK Training Courses, for more information visit:<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; Please keep messages on-topic and check the ITK FAQ at:<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; Follow this link to subscribe/unsubscribe:<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><font color="#888888"><br>
<br><br>--<br>Cory Quammen<br>Computer Integrated Systems for Microscopy and Manipulation (CISMM)<br>Department of Computer Science<br>University of North Carolina at Chapel Hill<br><a href="http://www.cs.unc.edu/~cquammen" target="_blank">http://www.cs.unc.edu/~cquammen</a><br>
</font></blockquote></div><br>