locked
Test Project Link to Production Project Problem in VC++ RRS feed

  • Question

  • Hi

    I have one Production Project named "A". After compilation, There are A.exe file in $(SolutionDir)/Debug and many obj files in $(SolutionDir/A/Debug.

    I have a Test Project "ATest" to test the Class in "A". While compiling "ATest", I got the Error that;

    ATest.obj : error LNK2028: unresolved token (0A00001E) "public: int __thiscall MainApplication::run(void)" (?run@MainApplication@@$$FQAEHXZ)...
    ATest.obj : error LNK2028: unresolved token (0A00001F) "public: __thiscall MainApplication::MainApplication(void)" (??0MainApplication@@$$FQAE@XZ)...
    ATest.obj : error LNK2019: unresolved external symbol "public: int __thiscall MainApplication::run(void)" (?run@MainApplication@@$$FQAEHXZ)...
    ATest.obj : error LNK2019: unresolved external symbol " public: __thiscall MainApplication::MainApplication(void)" (??0MainApplication@@$$FQAE@XZ)...

    Coud you please tell me how to fix this problem by configing the "ATest"?

    Thank you so much!

    Thursday, September 2, 2010 6:35 AM

Answers

  • The answer can be found in:

    http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/316b4408-26f4-4ced-8828-8a33030b8449

    Sunday, September 5, 2010 2:01 AM

All replies

  • I have created a simple project which can demo the problem

    You can find it here:

    http://www.4shared.com/file/mtUUP11u/ForUnitTest_VC_2010.html

    Thank you so much if anyone can help me!

    Friday, September 3, 2010 2:23 AM
  • The answer can be found in:

    http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/316b4408-26f4-4ced-8828-8a33030b8449

    Sunday, September 5, 2010 2:01 AM