错误LNK1104无法打开文件'; .obj' [英] Error LNK1104 cannot open file ';.obj'

查看:5602
本文介绍了错误LNK1104无法打开文件'; .obj'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误LNK1104无法打开文件'; .obj'project1
D:\project1\source\project1\project1\LINK 1

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

我使用visual studio 2015和openframeworks,我对c ++语言很新。

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?

推荐答案

构建过程有两个主要步骤:

The build-process has two main step:


  • 编译

  • 链接

在编译阶段,obj文件是从源文件构建的。在链接步骤中,这些obj文件是连接的,解析未解析的引用并构建最终输出(静态/动态库或可执行文件)。

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:


  • 编译失败(检查先前的错误,如果有)

  • 对于指定的源文件,由于某种原因(当整个项目从构建过程中排除或指定它应该仅保存预处理文件时,可能会发生这种情况)跳过编译。

您有其他任何错误讯息或警告吗?请检查您是否真正构建指定的项目(以及实际的源文件)。作为第一步,您可以在Build - > Configuration Manager中检查它。查看Build列中的复选框。

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.

这篇关于错误LNK1104无法打开文件'; .obj'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆