Visual C ++生成/调试错误 [英] Visual C++ build/debugging error

查看:162
本文介绍了Visual C ++生成/调试错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在尝试在Visual C ++ 2008中编译用Visual C ++ 2005编写的程序.但是,我收到如下错误:

Dear all,

I''m trying to compile a program written in Visual C++ 2005 in Visual C++ 2008. However, i received an error as follows :

1>fatal error RC1110: could not open ..\..\Tools\wxWindows_2_4_2\include\wx\msw\wx.rc
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'.


我已经检查了所有引用,没有针对".. \ .. \ Tools \ wxWindows_2_4_2 \ include \ wx \ msw \ wx.rc"的引用.我真的是Visual C ++的新手.需要您的帮助来解决问题.

谢谢你.

Hafeez Osman


I''ve check all the references, there are no such reference for "..\..\Tools\wxWindows_2_4_2\include\wx\msw\wx.rc". I''m really new in Visual C++. Need your help to solve the problem.

Thank you in advanced.

Hafeez Osman

推荐答案

使用工具查找文件并在整个解决方案中搜索wx.rc.这将指示其来源.可能是您缺少源路径或实际文件.
Use the tool Find in Files and search for wx.rc in the entire solution. This will indicate where it comes from. Chanses are you are missing a source path or the actual file.


.rc表示这是资源编译器文件,应在解决方案资源管理器中的资源"标题下列出.在您的项目中.如果不是,请添加它(尽管我不知道为什么VS然后会搜索它...).如果已经存在,请尝试将其打开.如果这样不起作用,请将其删除,然后尝试从其当前位置重新添加它. (右键单击资源文件,然后单击添加->添加现有项...)

我不知道还要检查什么,但是如果您查看属性,则在资源/命令行"下,默认设置只是一个选项:一个用于定义实际资源文件的选项("/fo< filename>" )

.rc文件的标准位置就在项目根目录中.如果所有其他方法都失败,请尝试将rc文件移动到那里.不过,您将需要删除它并将其重新添加到您的解决方案中.

您可以尝试做的最后一件事,但我不知道它是否也可以在VS 2008中使用:早期版本使用基于ASCII的文本文件(看起来像XML)来存储解决方案文件.您可以打开它,搜索描述.rc文件位置的行,然后手动输入该文件的绝对路径.

注意

上述建议中的一些可能会破坏您的解决方案!我建议他们只是因为它看起来已经损坏了.您应该保留所有文件的备份副本,以防万一.
.rc indicates this is a resource compiler file, and it should be listed in Solution Explorer under the heading ''Resources'' within your project. If it isn''t, add it (although I wouldn''t know why VS would search for it then...). If it''s already there, try open it. If that doesn''t work, remove it and try re-adding it from it''s current location. (right-click on Resource Files, then Add -> Add Existing Item... )

I don''t know what else to check, but if you look at the properties, under Resources/Command line, the default setting is just one option: the one for defining the actual resouce file ( " /fo <filename> " )

The standard location for the .rc file is right in the project root. If all else fails try moving your rc file there. You will need to remove and re-add it to your solution though.

There''s one last thing you could try, but I have no idea if that even works in VS 2008: earlier versions use an ASCII based text file (looks like XML) to store the solution file. You could open that, search for the line describing the location of your .rc file, and manually enter the absolute path of that file.

Caution

Some of the above suggestions may corrupt your solution! I suggested them only because it looks like it''s corrupted already. You should keep backup copies of all your files, just in case.


这篇关于Visual C ++生成/调试错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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