[Insight-users] compile error cause by #define, should I add 1 after variable?

Lin, Jeen-Shang JsLin at engr.pitt.edu
Thu Sep 7 09:20:43 EDT 2006


Hi,

 

I am using VC++7.1 (from 2003 net); CMAKE 2.4; Insight.toolkit.2.8.1.

On my first build I got errors from the following header files. I think
it all comes from 

"# define"  without giving a value. These cause VC "fatal error C1017:
invalid integer constant expression"

Should I add 1 after the variable?

 

I listed two occurrences:

 

(1). The error points to
..\itk\InsightToolkit-2.8.1\Utilities\vxl\core\vnl\vnl_math.cxx(144)
which  points to "VXL_BIG_ENDIAN" in vxl_config.h:

#define VXL_BIG_ENDIAN   

(2) I got another error at

binary\Utilities\itksys\FundamentalType.h, which point to the following
four defines:

 

#define itksys_SIZEOF_CHAR 

#define itksys_SIZEOF_SHORT 

#define itksys_SIZEOF_INT 

#define itksys_SIZEOF_LONG

 

Any help on this  is appreciated.

 

Thanks,

J-S 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060907/cd81a36d/attachment.html


More information about the Insight-users mailing list