简体   繁体   English

VS2010错误:LNK1181:无法打开输入文件xxxx.obj(仅在调试模式下)

[英]VS2010 error : LNK1181 : cannot open input file xxxx.obj (only in debug mode)

I am using visual Studio 2010, trying to build a big solution having many VC++ projects converted from older Visual Studio builds. 我正在使用Visual Studio 2010,试图构建一个大型解决方案,其中有许多VC ++项目是从较旧的Visual Studio版本转换而来的。

The problem is, it gives me this LNK1181 for the 'root' project of the solution (the project on which all other projects are dependent) but only in DEBUG mode (win32). 问题是,它为解决方案的“根”项目(所有其他项目所依赖的项目)提供了此LNK1181,但仅在调试模式下(win32)。 In release mode, it does not give me this error. 在发布模式下,它不会给我这个错误。

I noticed that this obj file is actually not created at all when in debug mode. 我注意到在调试模式下实际上根本不会创建该obj文件。 Though the compiler doesn't give any error when it is building that cpp file. 尽管编译器在构建该cpp文件时没有给出任何错误。

What could be the problem? 可能是什么问题呢? Is it related to those property manager sheets too somehow or something else? 它与物业经理工作表是否有某种联系?

The project is downloaded from our Source Control System directly, and works fine on other machines so there is something wrong on mine :(. 该项目是直接从我们的源代码控制系统下载的,在其他计算机上也可以正常运行,因此我的:(。

为了它的价值,我不小心将* .obj文件添加到了项目中,因此抛出了此错误。

Click on solution. 单击解决方案。 goto Build menu and clean the solution and again build the solution hopefully this action sove your issue 转到“构建”菜单并清理解决方案,然后再次构建解决方案,希望此操作可以解决您的问题

You probably solved this a long time ago, but when I had this exact issue, removing the source files used to create the object from the project and then re-adding them as existing items fixed the issue. 您可能很久以前就解决了这个问题,但是当我遇到这个确切的问题时,请从项目中删除用于创建对象的源文件,然后将它们重新添加为现有项目即可解决此问题。 Of course, this doesn't change the fact that you're using project/solution files from your repo that other people are using without issue, which is odd. 当然,这不会改变您正在使用其他人使用的仓库中的项目/解决方案文件这一事实,这很奇怪。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2010 - 链接:致命错误 LNK1181:无法打开输入文件“■/.obj” - Visual Studio 2010 - LINK : fatal error LNK1181: cannot open input file “ ■/.obj” 用依赖项重建项目时的VS2010 LNK1181 - VS2010 LNK1181 when rebuilding project with dependency OpenCV和VS2010:致命错误LNK1104:atal错误LNK1104:无法打开文件'tbb_debug.lib - OpenCV and VS2010: Fatal error LNK1104: atal error LNK1104: cannot open file 'tbb_debug.lib 异常的VS2010链接错误LNK1104:无法打开文件'libssh2d.lib' - Unusual VS2010 Link Error LNK1104: cannot open file 'libssh2d.lib' c ++ - Visual Studio 2010链接器错误LNK1104:'无法打开文件Debug \\ AssemblyInfo.obj'[.obj文件不是在编译时创建的] - c++ — Visual Studio 2010 Linker Error LNK1104: 'cannot open file Debug\AssemblyInfo.obj' [.obj files are not created at compile time] 将解决方案 C++ 从 VS2005 升级到 VS2012 出现错误 LNK1181 - Upgrading a solution C++ from VS2005 to VS2012 have an error LNK1181 VS2010中的“无法打开包含文件”错误 - “Cannot open include file” error in VS2010 vs2010无法以编译模式运行文件,但可以在调试模式下正确执行 - vs2010 cannot run file in compiled mode, but executes properly in debug mode VS2010调试附加到进程/无法找到或打开PDB文件 - VS2010 Debug attach to process / cannot find or open the PDB file Visual Studio 2010中的OpenCV错误:致命错误LNK1104:无法打开文件'opencv_calib3d243.obj' - OpenCV error in Visual Studio 2010: fatal error LNK1104: cannot open file 'opencv_calib3d243.obj'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM