[Insight-users] Linking problem [optimizer?]

J Mst gave_edgar at hotmail . com
Tue, 06 May 2003 10:26:28 +0000


Hi all,

I was making a little programming which can do registration. I use an MFC 
interface. The compiling process is going ok but when VC++ start linking I 
get the following error message:

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

**********************************************************************

I have tried many different ways to "call" the optimizer.. but without 
success. Does anyone know how to correct my problem??

Many thanx in advance

Joris





_________________________________________________________________
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl