Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

0 votes

This error message appears in Visual Studio. It exists in most of the versions. There are many causes of this error, but the most common one is that when there is an additional dependency of the project, this dependency contains a space character. Also it may occur when the link of the dependency is wrong. Mostly the error message is in this form:

LINK : fatal error LNK1104: cannot open file 'C:\Program.obj'

Because the additional dependency is in the "C:\Program Files\..." folder, and this folder contains a space character. Visual Studio returns "C:\Program.obj".

requested by (170k points)

1 Solution

0 votes

The solution can be reached by just taking the Additional Dependencies path into the brackets. Additional Dependencies may remain in different place in other versions. The below procedure tells for Visual Studio 2008.

  1. Right click on the project in Solution Explorer.
  2. Choose Properties.
  3. Go to Configuration Properties -> Linker -> Input.
  4. Choose Additional Dependencies.
  5. Take your path into the brackets such as: C:\Program Files\mylib.dll -> "C:\Program Files\mylib.dll"

Sometimes it is not suggested to take the path into the brackets. Another option is to move the file to another folder and changing the Additional Dependencies path.

solved by (170k points)
...