<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Luis,<br><br>I was looking at a specific example in ITKApps and traced back the error to itkinttypes.h. I deleted the namespace and was able to build the example fine. <br><br>However, later I observed that I got multiple errors (other than the errors generated by namespace) when I tried to compile the entire ITKApps. I did not pursue further than that.<br><br>RS.<br><br><br><hr id="stopSpelling">Date: Sun, 17 Oct 2010 06:37:10 -0400<br>Subject: Re: [Insight-users] Error building InsightApplications<br>From: luis.ibanez@kitware.com<br>To: rksamala@miners.utep.edu<br>CC: insight-users@itk.org; vtkusers@vtk.org<br><br>Hi Ravi,<br><br>I believe that when we looked at this error previously,<br>the real culprit is the use of the abominable statement<br><br>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "using namespace itk;"<br><br>in some places in ITKApps.<br>
<br>You may want to double check that no such statement<br>is still around.<br><br>---<br><br>Could you please clarify how you got around the <br>problem with&nbsp; itkinttypes.h&nbsp;&nbsp; ?<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks,<br>
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><div class="ecxgmail_quote"><br>----------------------------------------------------------------------<br>On Tue, Oct 12, 2010 at 9:36 AM, Ravi Samala <span dir="ltr">&lt;<a href="mailto:rksamala@miners.utep.edu">rksamala@miners.utep.edu</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">



<div>



I was able to figure it out.<br><br><font face="Courier New">namespace itk</font> in <font face="Tahoma">\Code\Common\itkinttypes.h</font><font face="Tahoma"> file is causing the problem.</font><br><br>regards,<br>RS.<br>
<hr>From: <a href="mailto:rksamala@miners.utep.edu">rksamala@miners.utep.edu</a><br>To: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Date: Mon, 11 Oct 2010 22:10:59 -0600<br>Subject: [Insight-users] Error building InsightApplications<div><div></div><div class="h5"><br><br>












Hello Everyone,<br><br>I am trying to build InsightApplications and I keep getting the following error. I am using ITK, ITKApps, VTK (all nightly-master) compiled with CMake 2.8.2 and FLTK 1.1.10.<br><br><font face="Courier New">C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(590) : error C2872: 'uintptr_t' : ambiguous symbol</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; could be 'C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) : __w64 unsigned int uintptr_t'</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or 'c:\msysgit\msysgit\git\itk\code\common\itkIntTypes.h(115) : itk::uintptr_t'</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator&lt;_Elem,_Traits&gt; std::num_get&lt;_Elem,_InIt&gt;::do_get(_InIt,_InIt,std::ios_base &amp;,std::ios_base::iostate &amp;,void *&amp;) const'</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Elem=char,</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Traits=std::char_traits&lt;char&gt;,</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _InIt=std::istreambuf_iterator&lt;char,std::char_traits&lt;char&gt;&gt;</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(1367) : see reference to class template instantiation 'std::num_get&lt;_Elem,_InIt&gt;' being compiled</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _Elem=char,</font><font face="Courier New"><br>
</font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _InIt=std::istreambuf_iterator&lt;char,std::char_traits&lt;char&gt;&gt;</font><font face="Courier New"><br></font><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</font><font face="Courier New"><br>
</font><font face="Courier New"><br></font><font face="Courier New"><br></font><br>Thanks,<br>RS.<br>                                               
<br></div></div>_____________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a>

Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a>                                               </div>
<br>_____________________________________<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></blockquote></div><br>                                               </body>
</html>