[Insight-users] please ignore above question about "macro max requires 2 arguemnts ..."

Luis Ibanez luis.ibanez at kitware.com
Sat Mar 19 20:09:05 EST 2005


Hi Xia,

Just for the record,

The error that you were getting is caused because
VisualStudio defines min() and max() as Macros.

ITK headers "undef" such dangerous macros and make
possible to differentiate between them and real
function definitions.

Setting includes for ITK headers at the beginning
makes that the "undef" appear on time, before the
min and/or max functions are used.


    Regards,


       Luis



-----------------
Di Xiao wrote:

> 
> Sorry.
> 
> It seems putting the "itkPointSet.h" above all other headers can solve  
> "macro max requires two arguments, but only 1 given".
> 
> xiao di
> 
> _________________________________________________________________





More information about the Insight-users mailing list