[Insight-users] ITK MFC_GUI..
Luis Ibanez
luis . ibanez at kitware . com
Thu, 12 Jun 2003 16:14:44 -0400
Hi Yasser,
Visual C++ made the unfortunate decision of
defining macros for "min" and "max", probably
under the assumption that nobody else would
be interested in using such names for functions.
ITK undefine these two macros since they collide
with internal definitions of the itkNumericTraits
and they are not C++ language standards.
You can get around these conflicts by selecting
the order in which you include header files
in the .cxx file that is generating the error.
ITK headers should be included first and standard
C++ headers should go after them.
Regards,
Luis
----------------------
yasser salman wrote:
> hi luis..,
> i'm using VTK with MFC_GUI (MDI interface , and it's
> ok every thing go well with VTK..
> but when i add in cmakelists.txt it cause errors not
> applicable (like min(x,y).. fetal error undefind
> "min") , why it cause this error when using itk?..if u
> plz can u help me in 3D surface that i posted before?
> yasser.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar . yahoo . com
> _______________________________________________
> Insight-users mailing list
> Insight-users at www . itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>