[Insight-users] Insight 1.6 Compilation

Brad King brad.king at kitware.com
Wed, 18 Feb 2004 15:17:57 -0500


mauricio.inforcati at cenpra.gov.br wrote:
> Hi,  
> I am trying to compile Insight Toolkit 1.6 on linux machine and i'm having  
> problems. I use Conectiva 8 distribution and want to use it with python2.3. 
> This is my make output...   
>   
> Building wrap_ITKCommonBase.xml from   
> /(HOMEDIR)/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml...  
> In file included from /usr/include/g++-3/stl_alloc.h:71,  
>                  from /usr/include/g++-3/alloc.h:21,  
>                  from /usr/include/g++-3/std/bastring.h:39,  
>                  from /usr/include/g++-3/string:6,  
>                  from /usr/lib/CableSwig/share/gccxml-0.5/GCC/2.95/string:4,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkMacro.h:36,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkSmartPointer.h:20,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkLightObject.h:27,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkObject.h:23,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkCommand.h:20,  
>                  from  
> /(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:  
> /usr/include/pthread.h:163: error: syntax error before `__thread'  
> /usr/include/pthread.h:165: error: `pthread_create' declared as function  
>    returning a function  

What compiler are you using to build ITK?  Please include the version 
number.

-Brad