[vtkusers] Question regarding first VTK Application

Neerav Patel neeravpatel at hotmail.com
Fri Aug 3 18:12:18 EDT 2007


Hi,
 
I am using Visual Studio .NET 2003 and I have added all the header files and everything into the project and I am getting the following errors:
 
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2491: 'new' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2078: too many initializers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2143: syntax error : missing ';' before '('
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29) : error C2226: syntax error : unexpected type 'size_t'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(30) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C2491: 'new' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C2078: too many initializers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C2143: syntax error : missing ';' before '['
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(33) : error C3409: empty attribute block is not allowed
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(34) : warning C4091: '' : ignored on left of '__w64 unsigned int' when no variable is declared
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(34) : error C2143: syntax error : missing ';' before ','
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(34) : error C2059: syntax error : ','
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(34) : fatal error C1004: unexpected end of file found
 
 
Does anyone know what I am doing wrong,  the code I entered is as follows:
 
#include "vtkSphereSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderWindow.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"
 
 
 
 
vtkSphereSource *sphere = vtkSphereSource::New();
sphere->SetRadius(1.0);
sphere->SetThetaResolution(18);
sphere->SetPhiResolution(18);
 
Does anyone know what I am doing incorrectly.
 
Thanks
 
Neerav
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070803/b6f287ae/attachment.htm>


More information about the vtkusers mailing list