[MINC-development] namespaces

Vicka Corey minc-development@bic.mni.mcgill.ca
Wed, 18 Jun 2003 13:13:51 -0400


Some details on our namespace issues:

This happens on our compilation of executables using with other libraries.

volume_io.h includes #include  <volume_io/basic.h>
and basic.h is the one with the commonly used names.

In specific the ones we've had trouble with include:

#define  PI           M_PI                  /* from math.h */

#define  ABS( x )   ( ((x) > 0) ? (x) : (-(x)) )
#define  FABS( x )   fabs( (double) x )
#define  SIGN( x )  ( ((x) > 0) ? 1 : (((x) < 0) ? -1 : 0) )
#define  FSIGN( x )  ( ((x) > 0.0) ? 1.0 : (((x) < 0.0) ? -1.0 : 0.0) ..

thanks,
--vicka