[Insight-users] help errors running itk/vtk example

charfeddine amir charfeddine_amir at yahoo.fr
Sat Jan 28 09:07:27 EST 2006


Hi  Michael
 i think u make a syntax mistake and not an error related of package installation.
 Just open the file \VSprojects\myProject\myProject.cxx and go to line  17
 and add a space between word Pointer and reader:
 your line n°17  should be like this :
 itk::ImageFileReader<ImageType>::Pointer reader;
 the same as line 18 (add a space between word Pointer and connector):
 itk::ImageToVTKImageFilter<ImageType>::Pointer connector;
 hope this will resolve your pb,
 Regards.
 Amir

"Twa, Michael" <MTwa at optometry.osu.edu> a écrit : I am using VC7.1 on winXP and (believe) I have successfully built the
VTK/ITK/Insight Applications. I am now trying to run the example given
(http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf) When I get the
proper header files included and project made I try to build and get the
following errors. Any help trouble shooting this would be appreciated.

Cheers,

Michael

Compiling...
myProject.cxx
\VSprojects\myProject\myProject.cxx(17) : error C2039: 'Pointerreader' : is
not a member of 'itk::ImageFileReader'
        with
        [
            TOutputImage=ImageType
        ]
\VSprojects\myProject\myProject.cxx(17) : error C2065: 'Pointerreader' :
undeclared identifier
\VSprojects\myProject\myProject.cxx(18) : error C2039: 'Pointerconnector' :
is not a member of 'itk::ImageToVTKImageFilter'
        with
        [
            TInputImage=ImageType
        ]
\VSprojects\myProject\myProject.cxx(18) : error C2065: 'Pointerconnector' :
undeclared identifier
\VSprojects\myProject\myProject.cxx(19) : error C2065: 'reader' : undeclared
identifier
\VSprojects\myProject\myProject.cxx(19) : error C2227: left of
'->SetFileName' must point to class/struct/union
        type is ''unknown-type''
\VSprojects\myProject\myProject.cxx(20) : error C2065: 'connector' :
undeclared identifier
\VSprojects\myProject\myProject.cxx(20) : error C2227: left of '->SetInput'
must point to class/struct/union
        type is ''unknown-type''
\VSprojects\myProject\myProject.cxx(20) : error C2227: left of '->GetOutput'
must point to class/struct/union
        type is ''unknown-type''
\VSprojects\myProject\myProject.cxx(20) : error C3861: 'reader': identifier
not found, even with argument-dependent lookup
\VSprojects\myProject\myProject.cxx(25) : error C2227: left of '->GetOutput'
must point to class/struct/union
        type is ''unknown-type''
\VSprojects\myProject\myProject.cxx(25) : error C3861: 'connector':
identifier not found, even with argument-dependent lookup

Build log was saved at
"file://c:\VSprojects\myProject\bin\Debug\BuildLog.htm"
myProject - 12 error(s), 0 warning(s)


_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users



		
---------------------------------
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060128/e6e3c119/attachment.html


More information about the Insight-users mailing list