[vtkusers] Using debugging lib with MSVC

Johnny Norris jnorris at mcs.anl.gov
Sat Sep 1 14:27:10 EDT 2001


Hi,

I'm trying to compile my application with debugging information under
Windows 2000 using MS Visual C++ 6.0.  I've compiled the debug version of
VTK without any problems, but whenever I try to compile a source file that
includes a VTK header, I always get errors like the following:

../../../vtk/common\vtkObject.h(117) : error C2059: syntax error : 'string'
../../../vtk/common\vtkObject.h(117) : error C2091: function returns function
../../../vtk/common\vtkObject.h(117) : error C2802: static member 'operator new' has no formal parameters
../../../vtk/common\vtkObject.h(118) : error C2059: syntax error : 'string'
../../../vtk/common\vtkObject.h(118) : error C2091: function returns function
../../../vtk/common\vtkObject.h(118) : error C2556: 'void *(__cdecl *__cdecl vtkObject::operator new(void))(unsigned int)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl vtkObject::operator new(void))(unsigned int,co
nst char *,int)'
        ../../../vtk/common\vtkObject.h(117) : see declaration of 'new'

Compiling a release version works fine.  I've checked that the compiler flags
and defines are the same, but nothing I've done has been able to fix it.  I'm
using a nightly release of VTK from the end of July.

Has anyone else had a problem like this?

Thanks,
John
-- 
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris




More information about the vtkusers mailing list