[Insight-users] ITK vs VC++ Conflict in stream files?

martin.garcia@epfl.ch martin . garcia at epfl . ch
Wed, 21 Aug 2002 07:59:04 +0200


Thanks for tour help but this doesn't change anything to the compilation.
itk is still not recpgnized as a name space

line  that causes trouble

typedef itk::Image<float,2> ImageType;

Errors

D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2653: 'itk' : is not a class or namespace name
> >D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2143: syntax error : missing ';' before '<'
> >D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2143: syntax error : missing ';' before '<'
> >Error executing cl.exe.



Quoting Bill Hoffman <bill.hoffman@kitware.com>:

> Should be #include <itkImage.h>
> 
> -Bill
> 
> 
> At 04:52 PM 8/20/2002 +0200, martin.garcia@epfl.ch wrote:
> 
> >Thanks Luis,
> >
> >Now Everything compiles well,  but my program still doesn't compile when
> Itry 
> >to define something like:
> >
> >        typedef itk::Image<float,2> ImageType;
> >
> >...as it's done in all the examples.
> >
> >I've included itkImage (#include <itkImage>) on the top of the file, before
> all 
> >other inclusions...
> >
> >...and the compilation finishes with those errors:
> >
> >D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2653: 'itk' : is not a class or namespace name
> >D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2143: syntax error : missing ';' before '<'
> >D:\OsirisTools\OsirisLight\OsirisLightNew\VtkItkConnector.cpp(33) : error 
> >C2143: syntax error : missing ';' before '<'
> >Error executing cl.exe.
> >
> >OsirisLight.exe - 3 error(s), 0 warning(s)
> >
> >Any Idea ?
> >
> >
> >
> >-------------------------------------------------
> >This mail sent through IMP: http://horde.org/imp/
> >_______________________________________________
> >Insight-users mailing list
> >Insight-users@public.kitware.com
> >http://public.kitware.com/mailman/listinfo/insight-users 
> 
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/