-
Error
I am just starting to write some simple program, and encounter the following message. I have no ideal how to resolve it.
Error Message:
>CalcApp.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CCalcApp::~CCalcApp(void)" (??1CCalcApp@@UAE@XZ) referenced in function "public: virtual void * __thiscall CCalcApp::`scalar deleting destructor'(unsigned int)" (??_GCCalcApp@@UAEPAXI@Z)
1>D:\Visual Studio 2008\Projects\MFCCalculator\Debug\MFCCalculator.exe : fatal error LNK1120: 1 unresolved externals
-
Re: Error
To get rid of that error, you have to write a definition (implementation) for CCalcApp destructor.
Something like
Code:
// CalcApp.cpp
CCalcApp::~CCalcApp()
{
// ...
}
-
Re: Error
Thanks for your help. My problem is solved.