今天莫名其妙地遇到这个问题。新建的MFC Dialog 项目都无法使用资源视图,“fatal error RC1107: invalid usage; use RC /? for Help”
经过一番Google,暂时解决如下:
“工具”->"选项"->"项目和解决方案"->"VC++ 目录" : "包含文件" 里面的条目如果有绝对路径(比如我的"C:/Boost/include/boost-1_33_1"),把其中的反斜线(/)替换为双反斜线(//)或者替换为斜线(/ 这个是我实验出来的,我喜欢这样,兼容Linux风格)。
至于原因,大概是VC8传递给 rcdll.dll 的命令行参数有问题,是一个Bug。具体参看大牛的分析 。
http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/e4ef7904-0947-4792-aa4a-b28077146d02/
The bug happens in the IDE. The IDE passes the command line to rcdll.dll when calling the exported functions RC and RCW. Its passed as the 5th parameter. I'm not sure how much of the IDE code is running in .NET, but I couldn't get much call history from
the stack. The command line may have originated in resedit.dll.
The command line that cause the problem is below. Note the quote after P: in the middle of the text.
PlatformSDK/bin/rcdll.dll./s./x./I.D:/Program Files/Microsoft Visual Studio 8/VC/include;D:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include;D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include;D:/Program Files/Microsoft Visual Studio
8/VC/PlatformSDK/common/include;D:/Program Files/Microsoft Visual Studio 8/SDK/v2.0/include;E:/ArmourSoft/SourceSafe2004;P:" /r /FO E:/ArmourSoft/SourceSafe2005/Projects/SmartSafe_5.0/ArmourSoft/FileSafe/ASCipher/ASCipher.aps /L 0x809 E:/ArmourSoft/SourceSafe2005/Projects/SmartSafe_5.0/ArmourSoft/FileSafe/ASCipher/ASCipher.rc
- Andy
http://blog.csdn.net/cuglij/article/details/3725211
今天莫名其妙地遇到这个问题。新建的MFC Dialog 项目都无法使用资源视图,“fatal error RC1107: invalid usage; use RC /? for Help”
经过一番Google,暂时解决如下:
“工具”->"选项"->"项目和解决方案"->"VC++ 目录" : "包含文件" 里面的条目如果有绝对路径,去掉路径最后的 "\"
至于原因,大概是判断路径是否存在时用了 access 导致多个 \ ,判断路径不存在了。
很奇怪的是以前创建的工程还是可以的,只是新建工程不行,不知道是不是和最近装的2008有关
|
Google了一下,http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=123870&SiteID=1
原因是Tools->Options->VC++Directories->Include Files中有以/结尾的路径; rc.exe会把最后的/换成", 但开头没有对应的引号, 所以解析错误. 把路径最后的/去掉就好了.
VC默认的包含路径都不是以/结尾的, 所以该错误一般发生在自己添加的路径上(比如DirectX的头文件路径).
分享到:
相关推荐
fatal:remote error: You can't push to git://github.com/username/*.git Use git@github.com:username/*.git 看来我是没有权限push啊。 解决方法: git remote rm origin git remote add origin git@github....
Visual+C+++中fatal+error+C1083的解决办法
18年7月更新,清华镜像,完美解决 Yocto,Android fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle 错误,绕开GFW
Fatal Error[Cp001]: Copy protecTIon check, No valid license found for this product [20] “Error[e16]: Segment CSTACK (size: 0x50 align: 0x1) is too long for segment definition. At least 0x50 more ...
fatal error: pcre2.h: No such file or directory 27 | #include "pcre2.h" 安装swoole遇到错误,把pcre2.h 放到、usr/include下
app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” 属性值不能包含 ‘<’ 字符。 Could not read /Users/panxin/Library/Android/sdk/platform-tools/api/annotations.zip java.io....
win10安装git报错 fatal:open /dev/null or dup failed: No such file or directory错误,将该文件复制到C:\Windows\System32\drivers 替换掉原有的null.sys文件重启即可
torch 项目完整代码,公司无法使用git,所以放了个备份在csdn上 (git clone https://github.com/torch/distro.git ~/torch --recursive)
fatal error: zmq.hpp: No such file or directory compilation terminated. 找不到zmq.hpp的原因是, zmq.hpp只存在master中。 如果你使用release版本,那么是没有zmq.hpp这个文件的。去master中找到zmq.hpp。 将...
解决安装vs2012后vs2010 LINK : fatal error LNK1123: failure during conversion to COFF Wrong version: 03/18/2010 01:16 PM 31,048 cvtres.exe Correct version: 02/21/2011 06:03 PM 31,056 cvtres.exe
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit Generating Code... fatal error C1076: compiler limit : internal heap limit reached; use /Zm to ...
问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...
fatal error: boostdesc_bgm.i: No such file or directory补充文件
使用git Bash here闪退并生成mintty.exe.stackdump文件 cmd使用git 报错 fatal:open /dev/null or dup failed: No such file or directory 并弹出mitty.dump文件 使用方法见我的CSDN
"ERROR", "FATAL", "NONE", }; // // 摘要: // 日志文件操作类。 // // 参数: // filepath: // 日志文件名,全路径文件名称。 public Log4net(string filepath) { } ~Log4net() { } #region --...
fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory 【错误】fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory 【原因】stdint.h是c99标准的头文件,vc不...
Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to ...
解决报错LINK : fatal error LNK1000补丁 返回错误:LINK : fatal error LNK1000: Internal error during IncrBuildImage
前言本博客所写到的是我在Linux云服务器升级编译内核时所遇到的真实问题,已解决。编译内核遇到的问题太多了。问题描述 在进行内核编译的时候,提sha1加密 C语
Error:318:can’t open file ‘beep.h’ 说明在编译C:\8051\MANN.C 程序过程中由于main.c 用了指令#include “beep.h”,但 却找不到所致 解决方法编写一个beep.h 的包含档并存入到c:\8051 的工作目录中