[Insight-users] Problem compiling ITK 3.4.0

Kendra kendracorreo at gmail.com
Sun Dec 2 04:56:49 EST 2007


I've got a problem compiling 3.4.0 version of ITK in Gentoo Linux with gcc
4.1.2. The error is the following:

[  45%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir
/itkMultiThreader.o
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In member function
'void itk::MultiThreader::MultipleMethodExecute()':
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:568: error:
'pthread_attr_create' no se declaró en este ámbito
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:584: error: no se
puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento
'2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
(*)(void*), void*)'
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In member function
'int itk::MultiThreader::SpawnThread(void* (*)(void*), void*)':
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:686: error:
'pthread_attr_create' no se declaró en este ámbito
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:697: error: no se
puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento
'2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
(*)(void*), void*)'
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In member function
'itk::ThreadProcessIDType
itk::MultiThreader::DispatchSingleMethodThread(itk::MultiThreader::ThreadInfoStruct*)':
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:888: error:
'pthread_attr_create' no se declaró en este ámbito
/home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:899: error: no se
puede convertir 'pthread_attr_t' a 'const pthread_attr_t*' para el argumento
'2' para 'int pthread_create(pthread_t*, const pthread_attr_t*, void*
(*)(void*), void*)'
make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkMultiThreader.o] Error
1
make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
make: *** [all] Error 2

Thanks.


-- 
Esther.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071202/6e69101c/attachment.html


More information about the Insight-users mailing list