[vtkusers] VTK 5.0 , ITK 2.4.1 compile errors with cygwin gcc 3.4.4
Stefanie Nowak
stefanie.nowak at igd.fraunhofer.de
Tue Jun 27 10:21:44 EDT 2006
Hi,
I try to compile VTK 5.0 and ITK 2.4.1 under Win32/Cygwin (gcc 3.4.4)
and get a lot of compiler errors.
The makefiles are generated by CMake 2.2 using the compiler setting
"UNIX makefiles".
Did I miss something in the settings? Or does ITK and VTK not work with
gcc 3.4.4?
Any help is appreciated.
Thanks,
Stefanie
The first errors by compiling VTK 5.0
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:141: error:
`wndClass' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:141: error:
`GetClassInfo' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:144: error:
`CS_HREDRAW' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:144: error:
`CS_VREDRAW' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:145: error:
`vtkWin32OutputWindowWndProc' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:149: error:
`IDI_APPLICATION' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:149: error:
`LoadIcon' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:151: error:
`IDC_ARROW' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:151: error:
`LoadCursor' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:152: error:
`HBRUSH' undeclared (first use this function)
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:152: error:
expected `;' before "GetStockObject"
D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:162: error:
`RegisterClass' undeclared (first use this function)
The first errors by compiling ITK 2.4.1
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116:
error: 'itk::ThreadFunctionType' has a previous declaration as `typedef
void*(*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123:
error: conflicting declaration 'typedef DWORD
(*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116:
error: 'itk::ThreadFunctionType' has a previous declaration as `typedef
void*(*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123:
error: declaration of `typedef DWORD (*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116:
error: conflicts with previous declaration `typedef
void*(*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123:
error: declaration of `typedef DWORD (*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116:
error: conflicts with previous declaration `typedef
void*(*itk::ThreadFunctionType)(void*)'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124:
error: conflicting declaration 'typedef void*itk::ThreadProcessIDType'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117:
error: 'itk::ThreadProcessIDType' has a previous declaration as `typedef
struct __pthread_t*itk::ThreadProcessIDType'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124:
error: declaration of `typedef void*itk::ThreadProcessIDType'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117:
error: conflicts with previous declaration `typedef struct
__pthread_t*itk::ThreadProcessIDType'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124:
error: declaration of `typedef void*itk::ThreadProcessIDType'
D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117:
error: conflicts with previous declaration `typedef struct
__pthread_t*itk::ThreadProcessIDType'
---------------------------------------------------------------------
Dipl.-Inform. Stefanie Nowak
Fraunhofer Institute for Computer Graphics
Cognitive Computing and Medical Imaging (A7)
Fraunhoferstr. 5, 64283 Darmstadt, Germany
---------------------------------------------------------------------
email: stefanie.nowak at igd.fraunhofer.de
http://a7www.igd.fhg.de/persons/snowak/
phone: +49 6151 - 155 520
fax: +49 6151 - 155 480
---------------------------------------------------------------------
More information about the vtkusers
mailing list