[Insight-users] New ITK segmentation software - VC problems

Joshua Cates cates at sci . utah . edu
Mon, 29 Jul 2002 18:33:21 -0600 (MDT)


Hello,

I've checked in several fixes which should take care of these errors on
VC++.  I'll try to track down a machine running windows so I can do more
debugging if needed.

Thanks,

Josh.

______________________________
 Josh Cates
 School of Computer Science
 University of Utah
 Email: cates@sci.utah.edu
 Phone: (801) 587-7697
 URL:   www.cs.utk.edu/~cates


On Mon, 29 Jul 2002, Jarek Sacha wrote:

> --- Joshua Cates <cates@sci.utah.edu> wrote:
> > I have checked a new example application into the Insight repository
> ...
> > Let me know of any problems building or running this software.
>
> My VC++ 6.0 build fails on SegmentationEditor/Common/vtkBinaryEditor.
> Errors and warnings are at the end of the message.
>
> Jarek
>
> -----------------------------
>
> vtkBinaryVolume.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.h(44) :
> warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false'
> (performance warning)
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(24)
> : warning C4273: 'vtkBinaryVolume::vtkBinaryVolume' : inconsistent dll
> linkage.  dllexport assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(31)
> : warning C4273: 'New' : inconsistent dll linkage.  dllexport assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(43)
> : warning C4273: 'Clear' : inconsistent dll linkage.  dllexport assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(62)
> : warning C4273: 'WriteToDisk' : inconsistent dll linkage.  dllexport
> assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(73)
> : error C2664: 'write' : cannot convert parameter 1 from 'unsigned char *'
> to 'const char *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(74)
> : error C2664: 'write' : cannot convert parameter 1 from 'unsigned char *'
> to 'const char *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(88)
> : warning C4273: 'ReadFromDisk' : inconsistent dll linkage.  dllexport
> assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(108)
> : error C2664: 'read' : cannot convert parameter 1 from 'unsigned char *'
> to 'char *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(114)
> : error C2664: 'read' : cannot convert parameter 1 from 'unsigned char *'
> to 'char *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(126)
> : warning C4273: 'SetWithRadius' : inconsistent dll linkage.  dllexport
> assumed.
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(147)
> : error C2039: 'rint' : is not a member of '`global namespace''
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(147)
> : error C2065: 'rint' : undeclared identifier
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.cxx(172)
> : warning C4273: 'UnsetWithRadius' : inconsistent dll linkage.  dllexport
> assumed.
> vtkBinaryVolumeLogic.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBinaryVolume.h(44) :
> warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false'
> (performance warning)
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkLookupTableEquivalencyHash.h(20)
> : fatal error C1083: Cannot open include file: 'hash_map': No such file or
> directory
> vtkLookupTableEquivalencyHash.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkLookupTableEquivalencyHash.h(20)
> : fatal error C1083: Cannot open include file: 'hash_map': No such file or
> directory
> vtkPatchedLookupTable.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkLookupTableEquivalencyHash.h(20)
> : fatal error C1083: Cannot open include file: 'hash_map': No such file or
> directory
> vtkWSBoundingBoxManager.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkBoundingBoxHash.h(21)
> : fatal error C1083: Cannot open include file: 'hash_map': No such file or
> directory
> vtkWSLookupTableManager.cxx
> D:\src\Insight\Examples\SegmentationEditor\Common\vtkLookupTableEquivalencyHash.h(20)
> : fatal error C1083: Cannot open include file: 'hash_map': No such file or
> directory
> Generating Code...
> Error executing cl.exe.
>
> ALL_BUILD - 11 error(s), 9 warning(s)
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>