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

前端 未结 4 2302
忘了有多久
忘了有多久 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:11

    Adding dependencies for .lib files is a manual step in Visual Studio.

    1. Open the Property Pages box for your project by right clicking on your project in the solution explorer (in your case, MyMultiplier_UnitLevelTest)
    2. Click on the Linker folder
    3. Open the Input page
    4. Add any necessary .libs in the Additional Dependencies field

    More information can be found here: http://msdn.microsoft.com/en-CA/library/ba1z7822.aspx

提交回复
热议问题