[Insight-users] Error Building InsightApplications 3.18
Luis Ibanez
luis.ibanez at kitware.com
Wed Jun 16 09:39:42 EDT 2010
Hi Jose,
This problem has been fixed in the CVS HEAD
version of Insight Applications.
The problem is cause by the irresponsible use of
"using namespace itk"
in several of the applications inside
InsightApplications.
The C++ statement:
"using namespace ..."
is the signature of a lazy developer (or one with
a poor text editor), and that should be banned
from the C++ language.
Opening a namespace is an absurd thing to do,
since it can only result in conflicts between
declarations. (which is what you are seeing now
in your build).
We have now removed all occurrences of
"using namespace ..." from the InsigthApplications
source tree.
Please give it a try at a CVS updated version
of InsightApplications.
Thanks
Luis
----------------------------------------------------------------------------
On Sat, Jun 12, 2010 at 2:19 PM, jose garcia <garcia.josef at gmail.com> wrote:
> Hi all,
>
> I am trying to build ITKFltkImage Viewer in InsightApplications 3.18 and
> kee getting a warning and error:
>
> Warning 1 Command line warning D9025 : overriding '/W3' with '/w' cl
>
> Error 2 error C2872: 'uintptr_t' : ambiguous symbol C:\Archivos de
> programa\Microsoft Visual Studio 8\VC\include\xlocnum 590 .
>
> I am using VS 2005 on windows XP sp2.
>
> I found a reference to the same problem from Mr Zein Salah back in 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.
>
> I already build it again, and even move back from fltk 1.1.10 to 1.1.9 but
> didn´t changed.
>
> Any ideas are very welcomed.
>
> thank you very much in advance for your help.
>
> Jose Garcia
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100616/e8f0a772/attachment.htm>
More information about the Insight-users
mailing list