[Insight-users] The itk could not compiled with mingw

张宁 zhangning1978 at gmail.com
Thu Jul 9 04:44:10 EDT 2009


Hello! I tried to compile the latest cvs ITK with mingw with the makefile
generated by cmake. The compiler complained the following errors.[ 66%]
Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj
In file included from
F:\ITK\source\Insight\Code\Common\itkConditionVariable.h:31,
                 from F:\ITK\source\Insight\Code\Common\itkBarrier.h:21,
                 from F:\ITK\source\Insight\Code\Common\itkBarrier.cxx:17:
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: conflicting
declaration 'typedef void*itk::MutexType'
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: 'itk::MutexType'
has a previous declaration as `typedef struct
pthread_mutex_t_*itk::MutexType'
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration of
`typedef void*itk::MutexType'
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts with
previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:50: error: declaration of
`typedef void*itk::MutexType'
F:\ITK\source\Insight\Code\Common\itkMutexLock.h:46: error: conflicts with
previous declaration `typedef struct pthread_mutex_t_*itk::MutexType'
mingw32-make[4]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkBarrier.obj]
Error 1
mingw32-make[3]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
mingw32-make[2]: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090709/7d6344e0/attachment.htm>


More information about the Insight-users mailing list