[vtkusers] error: invalid static_cast from type 'int' to type 'const itk::Image<unsigned char, 3u>*'

Cesar Rabak csrabak at yahoo.com.br
Sat Jan 14 16:28:32 EST 2006


OTOH, now we know the best season to ask for the full power of divinatory abilities 

Luis Ibanez <luis.ibanez at kitware.com> escreveu: 
Hi Amir,


      We may need to look at the code that
      you wrote in your file migAppBase.cxx     :-)



      It seems that you are attempting to assign
      an integer to a SmartPointer of an image.

      That will not work....


      Please be nice to us and share with mailing
      list the lines of code around line 246 of
      your file


         /usr/local/myITKgui/migAppBase.cxx


      We already tried hard to use our divinatory
      mental powers to guess what you may have
      written in that file...

      but given that today is almost Full Moon, and
      that we are too far from the Winter Solstice,
      our divinatory skills didn't work quite well.



       Best regards,


          Luis




---------------------
charfeddine amir wrote:
>  Hi All
> 
> while trying to build myITKgui package, i get error during build process :
> 
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:90: error: 
> invalid static_cast from type 'int' to type 'const itk::Image
> char, 3u>*'
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h: In member 
> function 'bool itk::SmartPointer::operator==(R) const [with 
> R = int, TObjectType = itk::Image]':
> /usr/local/myITKgui/migAppBase.cxx:246:   instantiated from here
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:86: error: 
> invalid static_cast from type 'int' to type 'const itk::Image
> char, 3u>*'
> make[1]: *** [migAppBase.o] Erreur 1
> make: *** [default_target] Erreur 2
> [root at timhpux myITKguibin]#
> 
> thankx for any help or comment.
> Amir.
> 

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




-- 
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
		
---------------------------------
 Yahoo! doce lar. Faça do Yahoo! sua homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060114/e671233c/attachment.htm>


More information about the vtkusers mailing list