[Insight-users] itk vtk and cocoa

alexandre govignon govignon.alexandre at gmail.com
Wed Oct 29 08:47:39 EDT 2008


Hi all
i tried to use vtk with cocoa. It works well. But i would like to use
ITK too. And it causes troubles. Definitely the problem comes from
templates in ITK which is not accepted by the objective-C language.
I include itk headers like that:


#define id Id
#import "vtkRenderer.h"
#import "itkImage.h"
#undef id

The third line cause me lots of error due to template language:

such as:

/Users/alex/Dev/ITKB/include/InsightToolkit/Common/itkNumericTraits.h:48:
error: expected template-name before '<' token

if somebody can help me...

Regards,
Alexandre


More information about the Insight-users mailing list