[Insight-users] compilation error: __threads is not a type

Luis Ibanez luis.ibanez@kitware.com
Wed, 25 Sep 2002 04:31:02 -0400


Hi Puja,


The code in

         Insight/Utilities/stdlib

Should only be built in SGIs.

Could you please make sure when you run CMake
that the option

       ITK_USE_SYSTEM_STDLIB

is "ON"

That will make ITK use the local stdlib of your
system instead of trying to build the one in
Utilities.

Only on SGI this variable should be set to "OFF".

This is needed in ITK due to problems on the SGI
std iostream library and multithreads.


Please let us know if you find other problems,



Thanks


Luis


=================================================


Puja Malik wrote:

> I download ITK and CMake and have the following compilation problem on
> my Solaris 5.8:
> 
> CC  -I/home/encephalon/puja/ITK/Insight/Utilities/stdlib
> -I/home/encephalon/puja/ITK/Insight/Code/Numerics
> -I/home/encephalon/puja/ITK/work
> -I/home/encephalon/puja/ITK/Insight/Code/Numerics
> -I/home/encephalon/puja/ITK/Insight/Code/Common
> -I/home/encephalon/puja/ITK/Insight/Code/IO
> -I/home/encephalon/puja/ITK/work/Code/Numerics/vxl
> -I/home/encephalon/puja/ITK/Insight/Code/Numerics/vxl
> -I/home/encephalon/puja/ITK/work/Code/Numerics/vxl/vcl
> -I/home/encephalon/puja/ITK/Insight/Code/Numerics/vxl/vcl
> -I/home/encephalon/puja/ITK/Insight/Utilities/png
> -I/home/encephalon/puja/ITK/Insight/Utilities/zlib
> -D_PTHREADS
> -c
> /home/encephalon/puja/ITK/Insight/Code/Numerics/itkCacheableScalarFunction.cxx
> -o
> itkCacheableScalarFunction.o
> 
> "/home/encephalon/puja/ITK/Insight/Utilities/stdlib/stl_alloc.h", line
> 408: Error: The template argument __threads is not a type.
> "/home/encephalon/puja/ITK/Insight/Utilities/stdlib/stl_string_fwd.h",
> line 25: Error: "," expected instead of "=".
> "/home/encephalon/puja/ITK/Insight/Utilities/stdlib/stl_string_fwd.h",
> line 25: Error: ">" expected instead of "=".
> 
> 
> I would appreciate any help!     Puja
> 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
> 
>