Visual Studio: LINK : fatal error LNK1181: cannot open input file

后端 未结 17 2839
盖世英雄少女心
盖世英雄少女心 2020-12-05 03:47

I\'ve been encountering a strange bug in Visual Studio 2010 for some time now.

I have a solution consisting of a project which compiles to a static library, and anot

17条回答
  •  旧时难觅i
    2020-12-05 04:12

    In my case I had the library installed using NuGet package (cpprestsdk) AND I falsely added the lib to the Additional Dependancies in the Linker settings. It turns out, the package does it all for you.

    The linker then tried to find the library in the library path and of course could not find it.

    After removing the library from the Additional Dependencies everything compiled and linked fine.

提交回复
热议问题