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

后端 未结 17 2841
盖世英雄少女心
盖世英雄少女心 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条回答
  •  不知归路
    2020-12-05 04:10

    I found a different solution for this...

    Actually, I missed comma separator between two library paths. After adding common it worked for me.

    Go to: Project properties -> Linker -> General -> Link Library Dependencies At this path make sure the path of the library is correct.

    Previous Code (With Bug - because I forgot to separate two lib paths with comma):

    ..\..\Build\lib\$(Configuration)**..\..\Build\Release;**%(AdditionalLibraryDirectories)
    

    Code after fix (Just separate libraries with comma):

    ..\..\Build\lib\$(Configuration)**;..\..\Build\Release;**%(AdditionalLibraryDirectories)
    

    Hope this will help you.

提交回复
热议问题