当前位置: 代码迷 >> C语言 >> BC31 的奇怪的出错警告:Unable to open include file 'string.h'
  详细解决方案

BC31 的奇怪的出错警告:Unable to open include file 'string.h'

热度:589   发布时间:2007-01-13 00:41:48.0
BC31 的奇怪的出错警告:Unable to open include file 'string.h'

BC31 的奇怪的出错警告:Unable to open include file 'string.h'

有点奇怪:
好长时间没更新程序了,刚才想改进两个小地方,可是在改好源码(就两个小地方,跟全局无关的)后,编译时出错了:(敢肯定,最上一次成功编译后,一直没动源码!)

出错如下:(BC31)
MAKE Version 3.6 Copyright (c) 1992 Borland International

Available memory 15728640 bytes

bcc -c -O2 -Z -ml crc32.c

Borland C++ Version 3.1 Copyright (c) 1992 Borland International
crc32.c:
Error zutil.h 21: Unable to open include file 'stddef.h'
Error zutil.h 23: Unable to open include file 'string.h'
Error zutil.h 24: Unable to open include file 'stdlib.h'
Error zutil.h 38: Unable to open include file 'errno.h'
Error zutil.h 97: Unable to open include file 'alloc.h'
Error crc32.c 37: Unable to open include file 'limits.h'
*** 6 errors in Compile ***


Available memory 4187800

** error 1 ** deleting crc32.obj

Unable to open include file 'stddef.h'。。。。。。
就是不能打开包含档案,可是这些档案明明有的,INCLUDE的路径也正确

以为是磁盘有问题,换了其他分区上的BC31,也是同样的错误!
(如果是磁盘有问题,怎会碰巧是不同的分区有问题的文件是一模一样的?!)

在纯DOS,用SCANDISK整理后,仍是同样的错误!

在XP,用CHKDSK /F 整理后,仍是同样的错误!

以为是BC31程序有问题,下载了新的BC31,也是同样的错误!

把改了的文件换成原先的文件,仍然是同样的错误!
删掉*。OBJ *。LIB文件仍然不行!

在纯DOS,和XP的COMMAND都是同样的错误!

是用MAKEFILE方式编译的(程序较复杂,不方便用其他方式编译),跟这个应该没关系的吧。(以前都可以的)

(补充:以前曾经遇到过这个问题,可是重启后就好了,这次重启多次就是不行!)

极度地不解中。。。

搜索更多相关的解决方案: string  Unable  include  open  file  

----------------解决方案--------------------------------------------------------
你试一下将string.h所在文件夹的名字改为全英文的,
并把此文件夹提到桌面或把其他上级文件夹名改为全英文式的。
----------------解决方案--------------------------------------------------------
  相关解决方案