[Insight-users] problem in running the examples

Giorgos Pichis gpichis at gmail.com
Mon Oct 15 08:52:40 EDT 2007


Hi there,

I have installed the itk toolkit, runned succesfully the helloworld example,
but I have problems in running the registration examples.
Errors appear in the compiler (Microsoft Visual C++  6).
I have copied below the output window of the debugging process

Output Window Compiling... ImageRegistration13.cxx Linking... Creating
library Debug/ImageRegistration13.lib and object
Debug/ImageRegistration13.exp ImageRegistration13.obj : error LNK2001:
unresolved external symbol "public: void __thiscall
itk::Optimizer::SetScales(class itk::Array const &)" (?SetScales@
Optimizer at itk@@QAEXABV?$Array at N@2@@Z) ImageRegistration13.obj : error
LNK2001: unresolved external symbol "protected: virtual void __thiscall
itk::RegularStepGradientDescentOptimizer::StepAlongGradient(double,class
itk::Array const &)" (?StepAlongGradient@
RegularStepGradientDescentOptimizer at itk@@MAEXNABV?$Array at N@2@@Z)
ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: virtual void __thiscall
itk::RegularStepGradientDescentBaseOptimizer::AdvanceOneStep(void)"
(?AdvanceOneStep at RegularStepGradientDescentBaseOptimizer@itk@@MAEXXZ)
ImageRegistration13.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall
itk::SingleValuedNonLinearOptimizer::SetCostFunction(class
itk::SingleValuedCostFunction *)" (?SetCostFunction@
SingleValuedNonLinearOptimizer at itk@@UAEXPAVSingleValuedCostFunction at 2@@Z)
ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: virtual void __thiscall itk::Optimizer::SetCurrentPosition(class
itk::Array const &)" (?SetCurrentPosition at Optimizer@itk@@MAEXABV?$Array at N@2@@Z)
ImageRegistration13.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall
itk::RegularStepGradientDescentBaseOptimizer::StartOptimization(void)"
(?StartOptimization at RegularStepGradientDescentBaseOptimizer@itk@@UAEXXZ)
ImageRegistration13.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall itk::Optimizer::SetInitialPosition(class
itk::Arrayconst &)" (?SetInitialPosition@
Optimizer at itk@@UAEXABV?$Array at N@2@@Z) ImageRegistration13.obj : error
LNK2001: unresolved external symbol "protected: virtual void __thiscall
itk::RegularStepGradientDescentBaseOptimizer::PrintSelf(class
std::basic_ostream > &,class itk::Indent)const " (?PrintSelf@
RegularStepGradientDescentBaseOptimizer at itk@@MBEXAAV?$basic_ostream at DU
?$char_traits at D@std@@@std@@VIndent at 2@@Z) ImageRegistration13.obj : error
LNK2001: unresolved external symbol "protected: __thiscall
itk::RegularStepGradientDescentBaseOptimizer::RegularStepGradientDescentBaseOptimizer(void)"
(??0RegularStepGradientDescentBaseOptimizer at itk@@IAE at XZ)
ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: virtual void __thiscall
itk::SingleValuedNonLinearOptimizer::PrintSelf(class std::basic_ostream >
&,class itk::Indent)const " (?PrintSelf at SingleValuedNonLinearOptimizer@itk@@
MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: virtual void __thiscall itk::Optimizer::PrintSelf(class
std::basic_ostream > &,class itk::Indent)const " (?PrintSelf at Optimizer@itk@@
MBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VIndent at 2@@Z)
ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: __thiscall itk::Optimizer::Optimizer(void)" (??0Optimizer at itk@@
IAE at XZ) ImageRegistration13.obj : error LNK2001: unresolved external symbol
"protected: __thiscall
itk::SingleValuedNonLinearOptimizer::SingleValuedNonLinearOptimizer(void)"
(??0SingleValuedNonLinearOptimizer at itk@@IAE at XZ) ImageRegistration13.obj :
error LNK2001: unresolved external symbol "protected: virtual void
__thiscall itk::CostFunction::PrintSelf(class std::basic_ostream > &,class
itk::Indent)const " (?PrintSelf at CostFunction@itk@@MBEXAAV?$basic_ostream at DU
?$char_traits at D@std@@@std@@VIndent at 2@@Z) Debug/ImageRegistration13.exe :
fatal error LNK1120: 14 unresolved externals Error executing link.exe.



PS. I couldn't find the Itk.sln file in the binary directory when I
installed Itk. Coult it be the problem
I have CMake2.4 and InsightToolkit-3.4.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071015/b52b2f6e/attachment.html


More information about the Insight-users mailing list