Google Test: error LNK2019: unresolved external symbol with Visual Studio 2013

前端 未结 4 2314
忘了有多久
忘了有多久 2021-02-14 10:53

I\'m trying to get my first ever unit test with Google Test framework + Visual Studio 2013.However I\'m hitting the below error and can\'t understand why.

4条回答
  •  醉梦人生
    2021-02-14 11:09

    The issue here is that you didn't include MyMultiplier.h/cpp in the actual test project.

    Add it to the project file (right-click, add existing item and navigate to the files).

提交回复
热议问题