请教C++程序编译时出错,应如何调试

xindianxin 2011-04-25 06:33:52
Deleting intermediate files and output files for project 'shiyan3 - Win32 Debug'.
--------------------Configuration: shiyan3 - Win32 Debug--------------------
Creating Type Library...
Processing E:\360data\重要数据\桌面\shiyan3\shiyan3.odl
shiyan3.odl
midl : command line error MIDL1001 : cannot open input file oaidl.idl
执行 midl.exe 时出错.

shiyan3.exe - 1 error(s), 0 warning(s)
...全文
424 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
颇黎 2011-04-25
  • 打赏
  • 举报
回复
"\重要数据\桌面\"

换成英文吧。。中文各种伤不起的。。
luciferisnotsatan 2011-04-25
  • 打赏
  • 举报
回复
编译出错,没法调试。除非你打算调编译器。
cannot open input file oaidl.idl
无法打开 oaidl.idl 这个文件。看看这个文件是否存在,所在目录是否在查找的路径里。目录最好是全英文的
c_losed 2011-04-25
  • 打赏
  • 举报
回复
midl : command line error MIDL1001 : cannot open input file oaidl.idl
无法打开输入文件oaidl.idl

确认下文件是否存在
环境设置 中文路径等问题
awsqsh 2011-04-25
  • 打赏
  • 举报
回复
设置断点啦,,打印结果啦,,我只知道这么多。
就想叫yoko 2011-04-25
  • 打赏
  • 举报
回复
是不是使用的vc6.0
把oaidl.idl文件路径添加到项目的include路径里试试
Sou2012 2011-04-25
  • 打赏
  • 举报
回复
找不到oaidl.idl这个文件,可能是路径的问题

64,649

社区成员

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

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