<div>Dear Cory,</div>
<div> </div>
<div>I did not use "using namespace itk" 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"><<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>></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 <<a href="mailto:yihuicao1987@gmail.com">yihuicao1987@gmail.com</a>> wrote:<br>> The problem occured at<br>> D:\InsightToolkit-3.18.0\InsightToolkit-3.18.0\Utilities\gdcm\src\gdcmSerieHelper.h(109)<br>
><br>> 2011/3/29 yihui cao <<a href="mailto:yihuicao1987@gmail.com">yihuicao1987@gmail.com</a>><br>>><br>>> Dear professor,<br>>><br>>> I writen a code of ITK. It occured a error: error C2872:<br>
>> “uint16_t”: ambiguous symbol it may<br>>> be“d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\utilities\gdcm\src\gdcmCommon.h(65)<br>>> : unsigned short<br>>> uint16_t” or “d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itkIntTypes.h(152)<br>
>> : itk::uint16_t”<br>>><br>>> What can I do to solve this problem?<br>>><br>>> Thanks!<br>>> yihui<br>><br></div></div>> _____________________________________<br>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>><br>> Please keep messages on-topic and check the ITK FAQ at:<br>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><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>