Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error LNK1104 cannot open file ';.obj'

Error LNK1104 cannot open file ';.obj' project1 D:\project1\source\project1\project1\LINK 1

I'm using visual studio 2015 and openframeworks, I'm fairly new to the c++ language.

I couldn't find a line of code which refers to this file.

Has anyone had a similar error or does know any tips to find the cause of this error?

like image 928
Maurice de Koning Avatar asked Dec 25 '15 12:12

Maurice de Koning


People also ask

How do I fix error lnk1104?

This error can occur when the Visual Studio path to the Windows SDK is out of date. It may happen if you install a newer Windows SDK independently of the Visual Studio installer. To fix it in the IDE, update the paths specified in the VC++ Directories property page. Set the version in the path to match the new SDK.

Where is kernel32 Lib located?

kernel32. lib is THE fundamental Windows API library. It is found in the Windows SDK and the default set of library locations should include it.


1 Answers

The build-process has two main step:

  • compile
  • link

In the compiling stage the obj files are built from the source file. In the linking step these obj files are "concatenated" resolving unresolved references and builds the final output (static/dynamic library or an executable).

Your error is a linker error which says that one of the compiled file cannot be found. This can happen when:

  • the compilation is failed (check the previous errors if any)
  • the compilation is skipped for the specified source file for some reason (this can happen when the whole project is excluded from the build process or you specified that it should save the preprocessed file only).

Do you have any other error messages or warnings? Please check if you're actually building the specified project (and the actual source file as well). As a first step, you can check it in the Build -> Configuration Manager. Look at the checkbox in the "Build" column.

like image 56
csisy Avatar answered Oct 24 '22 18:10

csisy