[Insight-users] compilation error: __threads is not a type
Luis Ibanez
luis.ibanez@kitware.com
Wed, 25 Sep 2002 07:39:05 -0400
Hi Puja,
Please double check the value of ITK_USE_SYSTEM_STDLIB
in the CMakeCache.txt file on your binary directory.
When ITK_USE_SYSTEM_STDLIB is ON, the code is
Utilities/stdlib should not be compiled at all.
If it is really ON in this file, please try a clean build.
Some missleading configuration may be your binary directory.
Please let us know if that solves the problem.
Thanks,
Luis
==================================================
Puja Malik wrote:
> Luis,
>
> Thanks for your reply. I've already made sure that ITK_USE_SYSTEM_STDLIB is "ON",
> but the error persists...
> Puja
>
> Luis Ibanez wrote:
>
>
>>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
>>>
>>>
>>>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>