title: Link Console Application with MFC Application in Visual Studio 2008
body: <p>I have a MFC project. I want to write unit tests for it using googletest. For that, I made a Win32 console application that contains all the unit tests. I put both these projects in a single solution.</p>
  
  <p>The problem is that when I build that solution I got the following linking error:</p>
  
  <p>error LNK2019: unresolved external symbol "public: __thiscall CTest_MFC_AppApp::CTest_MFC_AppApp(void)" (??0CTest_MFC_AppApp@@QAE@XZ) referenced in function "private: virtual void __thiscall SimpleTests_TestAsserts_Test::TestBody(void)" (?TestBody@SimpleTests_TestAsserts_Test@@EAEXXZ)   main.obj</p>
  
  <p>I've tried everything I could think of, including recreating the unit test project with and without precompiled headers. Can anyone shed some light on this problem? Thank you!</p>