VS2008链接错误fatal error LNK1104: cannot open file '*.obj'

时间:2023-12-17 08:41:56

  This particular issue is caused by specifying a dependency to a lib file that had spaces in its path. The path needs to be surrounded by quotes for the project to compile correctly.

  On the Configuration Properties -> Linker -> Input tab of the project’s properties, there is an Additional Dependencies property. This issue was fixed by changing this property from:

*.lib

To:

" *.lib"

  Where I added the quotes.