[vtkusers] problems compiling Vtk4.1.1 with msvc 6.0 on Win200

Vincent Daanen Vincent.Daanen at imag.fr
Thu Feb 14 02:26:39 EST 2002


Hi,

I just donwload (vtk 4.1.1) vtkNightlySrc.zip from vtk web site.
After running cmake, I get a vtk.dsw project I can open and compile.

When compiling vtkDataObject.cxx
I got some errors :
	D:\VTK4.11\Common\vtkDataObject.cxx(159) : error C2143: syntax error :
missing ';' before '<<'
	D:\VTK4.11\Common\vtkDataObject.cxx(166) : error C2143: syntax error :
missing ';' before '>>'
	D:\VTK4.11\Common\vtkDataObject.cxx(167) : error C2143: syntax error :
missing ';' before '{'
	D:\VTK4.11\Common\vtkDataObject.cxx(168) : error C2440: '=' : cannot
convert from 'class vtkProcessObject ** ' to 'class vtkObject ** '
        		Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
	D:\VTK4.11\Common\vtkDataObject.cxx(180) : error C2181: illegal else
without matching if

Here a the lines 

	159	<<<<<<< vtkDataObject.cxx
		if ( this->NumberOfConsumers > 0 )
		=======
		this->Consumers = new vtkObject* [this->NumberOfConsumers];
		int cnt = 0;
		int i;
		for (i = 0; i <= this->NumberOfConsumers; i++)
	166	>>>>>>> 1.82
	167	{
	168	this->Consumers = new vtkProcessObject* [this->NumberOfConsumers];
 

I guess problems come from <<<<<<<<<<<, ========== and >>>>>>>>>>
'comments'. 
Should I just comment these lines in to get vtk compiling or do they
have a special signification ??

 Vince


-- 
Vincent Daanen,
Research Engineer- Post Doctoral Position
Laboratoire TIMC/IMAG Equipe GMCAO - Université Joseph Fourier - CNRS
UMR 5525
Faculté de Médecine - Domaine de la Merci - 38706 La Tronche cedex -
France
Tel: +33 (0)4 76 54 95 23
Vincent.Daanen at imag.fr



More information about the vtkusers mailing list