游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1809|回复: 6

谁能告诉我这什么编译错误是什么错了?

[复制链接]

7

主题

31

帖子

31

积分

注册会员

Rank: 2

积分
31
发表于 2005-11-26 22:22:00 | 显示全部楼层 |阅读模式
d:\my project\simpledx\bmptodx.cpp(2) : fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1786)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
突然的出错! [em17]

1

主题

25

帖子

25

积分

注册会员

Rank: 2

积分
25
发表于 2005-11-26 23:37:00 | 显示全部楼层

Re:谁能告诉我这什么编译错误是什么错了?

自己去查查msdn,清清楚楚写在上面,微软的东西当然看微软的说明书:

Visual C++ Concepts: Building a C/C++ Program   

Fatal Error C1001
INTERNAL COMPILER ERROR
(compiler file file, line number)

The compiler cannot generate correct code for a construct, probably due the combination of an expression and an optimization option. Try removing one or more optimization options and recompiling the function containing the line indicated in the error message.

You can probably fix the problem by removing one or more optimization options. To determine which option is at fault, remove options one at a time and recompile until the error message goes away. The options most commonly responsible are /Og, /Oi, and /Oa. Once you determine which option is responsible, you can disable it using the optimize pragma around the function where the error occurs and continue to use the option for the rest of the module.

Try rewriting the line where the error is reported, or several lines of code surrounding that line. If that doesn't work, contact Microsoft Product Support Services.

7

主题

31

帖子

31

积分

注册会员

Rank: 2

积分
31
 楼主| 发表于 2005-11-26 23:46:00 | 显示全部楼层

Re: 谁能告诉我这什么编译错误是什么错了?

英文水平低看不到几成 [em10]

1

主题

25

帖子

25

积分

注册会员

Rank: 2

积分
25
发表于 2005-11-26 23:57:00 | 显示全部楼层

Re:谁能告诉我这什么编译错误是什么错了?

英语不好怎么编程?
找本英语字典,慢慢看,一个个查过来,别急!

5

主题

217

帖子

222

积分

中级会员

Rank: 3Rank: 3

积分
222
发表于 2005-11-28 18:10:00 | 显示全部楼层

Re:谁能告诉我这什么编译错误是什么错了?

说明上说...重写那一行..编译器无法产生正确的代码,可能是优化的问题
哈哈
你写了什么鬼程序,搬出来看下

12

主题

70

帖子

70

积分

注册会员

Rank: 2

积分
70
发表于 2005-11-28 19:07:00 | 显示全部楼层

Re:谁能告诉我这什么编译错误是什么错了?

简单的说就是将优化选项中的/Og, /Oi, and /Oa这3个标志排列组合一下,看看是哪个标志导致出错
然后在出错的代码周围使用条件预编译将出错代码框起来,这样其他的部分仍然能够使用所有的优化选项。
当然也可以对出错代码以及附近的代码进行改动,以消除错误

7

主题

31

帖子

31

积分

注册会员

Rank: 2

积分
31
 楼主| 发表于 2005-11-28 20:28:00 | 显示全部楼层

Re: 谁能告诉我这什么编译错误是什么错了?

谢了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-22 18:37

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表