简体   繁体   English

将解决方案 C++ 从 VS2005 升级到 VS2012 出现错误 LNK1181

[英]Upgrading a solution C++ from VS2005 to VS2012 have an error LNK1181

i'm upgrading a C++ solution with some dll projects and one exe console shell, actually the project build in the Visual Studio 2005, this project is very old and very sensible.我正在升级一个带有一些 dll 项目和一个 exe 控制台 shell 的 C++ 解决方案,实际上该项目是在 Visual Studio 2005 中构建的,这个项目非常古老且非常明智。 This work with all of my dispositives to communicate with his APIs, and send his events to my app in C#.这与我所有的决定一起工作,以与他的 API 通信,并将他的事件发送到我的 C# 应用程序。 Today i received the flag to start upgrading the project to Visual Studio 2012, but after the upgrade all of my projects receive the LNK 1181 error, don't find the nameproject.res file, but i don't have in any of the projects a .res file, happen's a .rc and no one of 25 projects build.今天我收到了开始将项目升级到 Visual Studio 2012 的标志,但升级后我的所有项目都收到 LNK 1181 错误,找不到 nameproject.res 文件,但我在任何项目中都没有一个 .res 文件,碰巧是一个 .rc 并且没有构建 25 个项目中的一个。

Error   6   error LNK1181: cannot open input file 'D:\Projects\DeviceManager\Branches\DSR865-BRB_DeviceManager\C-Fontes\tmp\DeviceManagerClassLibrary\Release\DeviceManagerClassLibrary.res'

I don't know what i can do to make these projects build!我不知道我能做些什么来构建这些项目!

Compile the .rc file first, before linking.在链接之前先编译 .rc 文件。

http://www.winasm.net/forum/index.php?showtopic=154 http://www.winasm.net/forum/index.php?showtopic=154

To correct the Issue I have to exclude the RC file from project and create a new RC file with version and importing all other things to the new RC.为了纠正这个问题,我必须从项目中排除 RC 文件并创建一个新的 RC 文件,并将所有其他内容导入新的 RC。 I don't know, but i think the VS 2005 RC file is not compatible with VS 2012. After i make this the project build and create the .res file.我不知道,但我认为 VS 2005 RC 文件与 VS 2012 不兼容。在我完成此项目后,项目构建并创建了 .res 文件。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM