[Insight-users] Re: NumericTraits::Zero not found during WrapITK
	build on Windows XP
    Charl P. Botha 
    cpbotha at cpbotha.net
       
    Thu Feb 16 07:53:51 EST 2006
    
    
  
On 2/16/06, Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
> Unless I'm completely wrong, Zero is declared in
> itkNumericTraitsCovariantVectorPixel.h, and is  initialized in
> itkNumericTraitsCovariantVectorPixel.cxx for type CovariantVector<float,2>.
You're right, it's defined there, for example:
const CovariantVector<float, 2>  NumericTraits<CovariantVector<float,
2> >::Zero = CovariantVector<float, 2>( NumericTraits<float >::Zero );
> This code should be in ITKCommon shared library.
> Can you give the command line of the linker ?
Okay, I do find this a bit strange:
cpbotha at MEEP /c/build/Insight-VS71/Code/Common/ITKCommon.dir/RelWithDebInfo
$ nm itkNumericTraitsCovariantVectorPixel.obj  | grep NumericTraits |
grep V\?\$CovariantVector\@M\$01 | grep Zero
00000900B?Zero@?$NumericTraits at V?$CovariantVector at M$01 at itk@@@itk@@2V?$CovariantVector at M$01 at 2@B
So it finds the symbol we're looking for, but then:
cpbotha at MEEP /c/build/Insight-VS71/bin/relwithdebinfo
$ nm ITKCommon.lib  | grep NumericTraits | grep
V\?$CovariantVector\@M\$01 | grep Zero
it seems that that module is not linked in somehow, or that the
symbols somehow get lost!  Checking the CMakeLists.txt file, it really
should be linked...
The complete options of the linker are as follows (this does not
include all object files it seems):
/OUT:"C:\build\WrapITK-VS71\bin\RelWithDebInfo\_ITKCommonAPython.dll"
/INCREMENTAL /NOLOGO
/LIBPATH:"C:\build\WrapITK-VS71\bin\RelWithDebInfo"
/LIBPATH:"C:\build\WrapITK-VS71\bin\\"
/LIBPATH:"c:\opt\ITK\lib\InsightToolkit\RelWithDebInfo"
/LIBPATH:"c:\opt\ITK\lib\InsightToolkit\\" /DLL /DEBUG
/PDB:"C:\build\WrapITK-VS71\bin\RelWithDebInfo\_ITKCommonAPython.pdb"
/STACK:10000000
/IMPLIB:"C:\build\WrapITK-VS71\bin\RelWithDebInfo\_ITKCommonAPython.lib"
odbc32.lib odbccp32.lib ITKCommon.lib SwigRuntimePython.lib
C:\Python24\libs\python24.lib itkvnl_inst.lib itkvnl_algo.lib
itkvnl.lib itkvcl.lib itknetlib.lib itksys.lib   kernel32.lib
user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
"\build\WrapITK-VS71\bin\RelWithDebInfo\SwigRuntimePython.lib"
"\build\WrapITK-VS71\bin\RelWithDebInfo\_VXLNumericsPython.lib"
"\opt\Itk\lib\InsightToolkit\ITKCommon.lib"
"\build\WrapITK-VS71\bin\relwithdebinfo\SwigRuntimePython.lib"
"\Python24\libs\python24.lib"
"\opt\Itk\lib\InsightToolkit\itkvnl_inst.lib"
"\opt\Itk\lib\InsightToolkit\itkvnl_algo.lib"
"\opt\Itk\lib\InsightToolkit\itkvnl.lib"
"\opt\Itk\lib\InsightToolkit\itkvcl.lib"
"\opt\Itk\lib\InsightToolkit\itknetlib.lib"
"\opt\Itk\lib\InsightToolkit\itksys.lib" /MACHINE:I386 /STACK:10000000
/machine:I386   /IGNORE:4049 /IGNORE:4109
    
    
More information about the Insight-users
mailing list