[vtkusers] VC5 and Nightly?

David Gobbi dgobbi at irus.rri.on.ca
Tue Sep 12 09:59:40 EDT 2000


The only workarounds for this bug in VC5 would involve either
1) eliminating 'const' from the methods 
2) eliminating 'const' from the templates, and casting from
   const to non-const when the methods call the templates

The latter is a possibility (though pretty ugly) if enough people
think that compatibility with a non-patched VC5 is important.
The former is not a possibility, because the wrappers use the
'const' to decide whether or not to wrap methods that have
array arguments.

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Tue, 12 Sep 2000, Tim Hutton wrote:

> Try installing the VC5 service pack 3, this should solve these specific
> template problems. Alternatively purchase VC6.
> 
> (Blame microsoft, other compilers have no problem)
> 
> [David - I guess you never managed to find a workaround that avoids the
> need for the SP]
> 
> Hope this helps,
> 
> Tim.
> 
> At 12:26 12/09/00 +0200, you wrote:
> >
> >
> >I tried compiling the last Nightly with VC 5 (Win NT 4.0), but I got all this
> >errors:
> >
> >
> >[d:\vtkbin]nmake
> >
> >Microsoft (R) Program Maintenance Utility   Version 1.62.7022
> >Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
> >
> >        cd vtkdll
> >        nmake OBJS
> >
> >Microsoft (R) Program Maintenance Utility   Version 1.62.7022
> >Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
> >
> >        cl.exe /nologo /D "STRICT" /MD /W3 /Ob1 /Oi /Ot /Oy /Gs /I
> "C:\Programmi
> >\DevStudio\vc\include" /I "D:\vtkbin" /I "D:\vtk\common" /I
> "D:\vtk\graphics" /I
> > "D:\vtk\imaging" /D "NDEBUG" /D "WIN32"  /I "D:\vtk\patented"  /I
> "D:\vtk\contr
> >ib"  /D "_WINDOWS" /D "_WINDLL" /D "_MBCS" /D "VTKDLL" /D
> "VTK_LEAN_AND_MEAN"  /
> >Foobj\ /c "D:\vtk\contrib\vtkWarpTransform.cxx"
> >vtkWarpTransform.cxx
> >D:\vtk\contrib\vtkWarpTransform.cxx(78) : error C2664: 'void
> vtkWarpTransform::T
> >emplateTransformInverse(const float [],float [])' : cannot convert
> parameter 2 f
> >rom 'const float []' to 'float []'
> >D:\vtk\contrib\vtkWarpTransform.cxx(82) : error C2664: 'void
> vtkWarpTransform::T
> >emplateTransformPoint(const float [],float [])' : cannot convert parameter
> 2 fro
> >m 'const float []' to 'float []'
> >.......
> >[SNIP]
> >
> >
> >Should I change any flag in the makefile?
> >
> >Thanks,
> >M.T.
> >
> >
> >
> >_______________________________________________
> >This is the private VTK discussion list. 
> >Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
> >
> >
> ---------------------------------------------------------------------------
> Tim Hutton, Research Assistant,    http://www.eastman.ucl.ac.uk/~dmi/MINORI
> MINORI Project,                           Email: T.Hutton at eastman.ucl.ac.uk
> Informatics Unit (Media Centre),      Permanent: T.Hutton at mail.com
> Eastman Dental Institute, UCL,                        Tel: +44 20 7915 2344
> 256 Gray's Inn Road, London WC1X 8LD, UK              Fax: +44 20 7915 2303
> ---------------------------------------------------------------------------
> This email represents the views of the sender alone and must not be
> construed as representing the views of the Eastman Dental Institute. It may
> contain confidential information and may be protected by law as a legally
> privileged document and copyright work. Its content should not be disclosed
> and it should not be given or copied to anyone other than the person(s)
> named or referenced above. If you have received this email in error, please
> contact the sender.
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 





More information about the vtkusers mailing list