[Insight-users] problems wrapping itk

Luis Ibanez luis.ibanez at kitware.com
Wed, 07 Jan 2004 19:19:35 -0500


Hi Felix,

That's an interesting error message...

The line 744 in "<limits>" is related to the
definition of the __int64 type which depends
on the preprocessor symbol "_LONGLONG" being
defined.

It looks like during the wrapping the _LONGLONG
symbol is defined but not as an _int64.

The line producing the error is trying to retun
a symbol _LLONGMAX as being of type _LONGLONG.

_LLONGMAXis defined by VisualStudio in yvals.h
as:

     #define _LLONGMAX = 0x7ffffffffffffff


Could you please verify first that you can build
the toolkit without wrapping in your system  ?

That is, enable EXAMPLES and TESTING but not
the wrapping and let us know if you get any
similar errors.


   Thanks


    Luis



--------------------
Felix Schwenk wrote:

> Hi all,
> i try to compile itk and cswig with vs .net 2003.
> cswig compiles fine, but i allways get errors like this:
> 
> ------ Build started: Project: ITKCommonTcl, Configuration: Debug Win32 
> ------
> 
> Building wrap_itkVersorTransform.xml from  
> C:/uni/ITKcvs/Wrapping/CSwig/Common/wrap_itkVersorTransform.xml
> In file included from 
> C:/projects/itk/Insight/Utilities/vxl/vcl/iso/vcl_limits.h:6,
>                  from 
> C:/projects/itk/Insight/Utilities/vxl/vcl/vcl_limits.h:12,
>                  from 
> C:/projects/itk/Insight/Code/Common/itkNumericTraits.h:24,
>                  from C:/projects/itk/Insight/Code/Common/itkVector.txx:21,
>                  from C:/projects/itk/Insight/Code/Common/itkVector.h:196,
>                  from C:/projects/itk/Insight/Code/Common/itkPoint.h:20,
>                  from 
> C:/projects/itk/Insight/Code/Common/itkTransform.h:21,
>                  from 
> C:/projects/itk/Insight/Code/Common/itkRigid3DTransform.h:21,
>                  from 
> C:/projects/itk/Insight/Code/Common/itkVersorTransform.h:22,
>                  from 
> C:/projects/itk/Insight/Wrapping/CSwig/Common/wrap_itkVersorTransform.cxx:17: 
> 
> c:/Programme/Microsoft Visual Studio .NET 2003/Vc7/Include/limits:744: 
> error: integer
>    constant is too large for "long" type
> c:/Programme/Microsoft Visual Studio .NET 2003/Vc7/Include/limits:749: 
> error: integer
>    constant is too large for "long" type
> c:/Programme/Microsoft Visual Studio .NET 2003/Vc7/Include/limits:802: 
> error: integer
>    constant is too large for "long" type
> Project : error PRJ0019: A tool returned an error code from "Building 
> wrap_itkVersorTransform.xml from  
> C:/uni/ITKcvs/Wrapping/CSwig/Common/wrap_itkVersorTransform.xml"
> 
> what am i doing wrong.
> 
> tia,
> felix.
>