nsrootidl.idl 文件 编译错误

hinick 2014-07-15 03:47:11
%{C++

#include "../include/nscore.h"
#include "../include/prtime.h"

/*
* Forward declarations for new string types
*/
class nsAString;
class nsACString;

/*
* Start commenting out the C++ versions of the below in the output header
*/
#if 0
%}

当编译上面的代码的时候, 出现了如下异常:
1>e:\firefoxplugin\xpcom-test\idl\nsrootidl.idl(44) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation

这个是咋回事? 麻烦大家了,谢谢!
...全文
111 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2014-07-15
  • 打赏
  • 举报
回复
MIDL2026 : cannot recover from earlier syntax errors; aborting compilation The MIDL compiler automatically tries to recover from syntax errors by adding or removing syntactic elements. This message indicates that despite these attempts to recover, the compiler detected too many errors. Correct the specified error(s) and recompile. mk:@MSITStore:C:\MSDN98\98VS\2052\MIDL.chm::/devdoc/good/pdobj/midl/mi-legal_682t.htm About This Guide This book is a reference for the Microsoft Interface Definition Language (MIDL) and a user's guide for the MIDL compiler, which generates C language files from your IDL files. Part I, Using the MIDL Compiler, lists the requirements for the C-compiler and pre-processor that MIDL must interoperate with. This section also describes the files that the MIDL compiler generates for RPC stubs, OLE interfaces, and OLE type libraries. Part II, the MIDL Command-Line Reference, contains reference information for each command-line switch and switch option recognized by the MIDL Compiler. Part III, the MIDL Language Reference, contains a reference entry for each keyword in the Microsoft Interface Definition Language. Part IV, MIDL Compiler Errors and Warnings, lists the error and warning messages that the MIDL compiler can generate.
hinick 2014-07-15
  • 打赏
  • 举报
回复
提示这一行 错误 %{C++

65,210

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧