CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Error

  1. #1
    Join Date
    Jan 2010
    Posts
    4

    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

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    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()
    {
        // ...
    }
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Jan 2010
    Posts
    4

    Re: Error

    Thanks for your help. My problem is solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured