<br>Hi Jose,<br><br>This problem has been fixed in the CVS HEAD <br>version of Insight Applications.<br><br><br>The problem is cause by the irresponsible use of<br><br> "using namespace itk"<br><br>
in several of the applications inside <br>InsightApplications.<br><br><br>The C++ statement:<br><br> "using namespace ..."<br><br>is the signature of a lazy developer (or one with<br>a poor text editor), and that should be banned <br>
from the C++ language.<br><br><br>Opening a namespace is an absurd thing to do, <br>since it can only result in conflicts between<br>declarations. (which is what you are seeing now<br>in your build).<br><br><br>We have now removed all occurrences of <br>
"using namespace ..." from the InsigthApplications<br>source tree.<br><br><br>Please give it a try at a CVS updated version<br>of InsightApplications.<br><br><br> Thanks<br><br><br> Luis<br><br>
<br><br><br>----------------------------------------------------------------------------<br><div class="gmail_quote">On Sat, Jun 12, 2010 at 2:19 PM, jose garcia <span dir="ltr"><<a href="mailto:garcia.josef@gmail.com">garcia.josef@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<div><br></div><div>I am trying to build ITKFltkImage Viewer in InsightApplications 3.18 and kee getting a warning and error:</div>
<div><br></div><div><div>Warning<span style="white-space: pre;">        </span>1<span style="white-space: pre;">        </span>Command line warning D9025 : overriding '/W3' with '/w'<span style="white-space: pre;">        </span>cl<span style="white-space: pre;">        </span></div>
</div><div><span style="white-space: pre;"><br></span></div><div><div>Error<span style="white-space: pre;">        </span>2<span style="white-space: pre;">        </span>error C2872: 'uintptr_t' : ambiguous symbol<span style="white-space: pre;">        </span>C:\Archivos de programa\Microsoft Visual Studio 8\VC\include\xlocnum<span style="white-space: pre;">        </span>590<span style="white-space: pre;">        </span>.</div>
</div><div><br></div><div>I am using VS 2005 on windows XP sp2. </div><div><br></div><div>I found a reference to the same problem from Mr <span><span style="font-size: 13.5pt; font-family: "Times New Roman"; color: black;" lang="EN-GB">Zein Salah</span></span><span><span style="font-size: 13.5pt; font-family: "Times New Roman"; color: black;" lang="EN-GB"> back in </span></span>2008, and the solution suggested was that i twas a 32 vs 64 bit compilation mixing problem. I have checked that I am compiling in 32 bits. Some of the application within the insight application do build. </div>
<div><br></div><div>I already build it again, and even move back from fltk 1.1.10 to 1.1.9 but didn´t changed. </div><div><br></div><div>Any ideas are very welcomed.</div><div><br></div><div>thank you very much in advance for your help.</div>
<div><br></div><font color="#888888"><div>Jose Garcia</div><div><span style="white-space: pre;"><br></span></div>
</font><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>