[Insight-developers] SGI's thread

Stephen R. Aylward aylward at unc . edu
Wed, 03 Jul 2002 15:11:40 -0400


Hi,

I am getting the following error on the SGI's for 
Insight/Examples/ITKFilterLib.

Basically, my CMakeLists.txt file creates a .lib for a filter in itk and 
then creates an executable that links with that .lib.   So, it 
demonstrates a quick way to call itk filters from existing packages 
(avs, matlab, etc).

BUT, on the SGI's I am getting an underfined symbol in ITKCommon for
the multithread class.   The CMakeLists file really only includes the 
common ITK libs, then does the ADD_LIBRARY call and then the 
ADD_EXECUTABLE call.   Works on other platforms...

Details are below...I am open to suggestions...thanks,
Stephen

CC  -n32 -LANG:std -woff 15 -woff 84 -woff 3439 -woff 1424 -woff 3201 
-LANG:std -ptused -no_prelink ITKFilterLibTest.o 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/zlib 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/png 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Common 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/IO 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Numerics/vxl 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Utilities/stdlib 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/BasicFilters 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Algorithms 
-L/projects/quality/itkQuality/Continuous/Insight-irix64/Examples/ITKFilterLib 
-lpthread -lVXLNumerics -lITKCommon -lITKBasicFilters -lCio -lm 
-lExample_ITKFilterLib -lpthread -lVXLNumerics -lITKCommon 
-lITKBasicFilters -lCio -lm -lExample_ITKFilterLib  -o 
Example_ITKFilterLibTest
ld32: ERROR   33 : Unresolved text symbol "pthread_attr_setscope" -- 1st 
referenced by 
/projects/quality/itkQuality/Continuous/Insight-irix64/Code/Common/libITKCommon.a(itkMultiThreader.o).
Use linker option -v to see when and which objects, archives and dsos 
are loaded.


-- 
===============================================
Dr. Stephen R. Aylward
Assistant Professor of Radiology
Adjunct Assistant Professor of Computer Science
http://caddlab.rad.unc.edu
aylward@unc.edu
(919) 966-9695