LNK2019: unresolved external symbol in VS unit-testing

后端 未结 4 1802
忘了有多久
忘了有多久 2021-02-19 19:40

I get the error as stated in the title. I ensured the following:
- The Include directory, include library and additional include directory are set correctly
- In the pro

4条回答
  •  终归单人心
    2021-02-19 20:07

    I had similar problem and fixed it by adding the output .obj files to the dependencies of the test project.

    refer to MSDN document - https://msdn.microsoft.com/en-us/library/hh419385.aspx#objectRef

提交回复
热议问题