[Insight-users] compilation errors with mingw
Gelas, Arnaud Joel Florent
Arnaud_Gelas at hms.harvard.edu
Wed Dec 8 10:32:45 EST 2010
Hi all,
I am trying to compile ITK with mingw and I get the following errors:
[ 46%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVari
able.cxx.obj
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx: In member function 'void itk:
:ConditionVariable::Wait(itk::SimpleMutexLock*)':
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:132: error: invalid conversion
from 'int' to 'void*'
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:132: error: initializing arg
ument 1 of 'DWORD SignalObjectAndWait(void*, void*, DWORD, BOOL)'
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:153: error: invalid conversion
from 'int' to 'void*'
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:153: error: initializing arg
ument 2 of 'DWORD SignalObjectAndWait(void*, void*, DWORD, BOOL)'
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:159: error: invalid conversion
from 'int' to 'void*'
C:\DEVEL\ITK\Code\Common\itkConditionVariable.cxx:159: error: initializing arg
ument 1 of 'DWORD WaitForSingleObject(void*, DWORD)'
mingw32-make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkConditionVariable.
cxx.obj] Error 1
mingw32-make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
mingw32-make: *** [all] Error 2
Do I need to change anything while configuring with CMake or is it a real compilation error?
Thanks,
Arnaud
More information about the Insight-users
mailing list