A bit strange:
I haven't updated the program for a long time. Just now, I wanted to improve two small parts. But after modifying the source code (just two small parts, not related to the global), there was an error during compilation: (I'm sure I didn't touch the source code since the last successful compilation!)
The error is as follows: (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'......
That is, it can't open the include file, but these files are clearly present, and the INCLUDE path is correct
I thought it was a disk problem, so I changed to BC31 on another partition, and it was the same error!
(If it's a disk problem, how could it happen that the files in different partitions that are exactly the same are problematic?!)
In pure DOS, after organizing with SCANDISK, it's still the same error!
In XP, after organizing with CHKDSK /F, it's still the same error!
I thought it was a problem with the BC31 program, so I downloaded the new BC31, and it's still the same error!
Replacing the modified file with the original file is still the same error! Deleting the *.OBJ *.LIB files still doesn't work!
In pure DOS and XP's COMMAND, it's the same error!
It's compiled using the MAKEFILE method (the program is complicated, so it's not convenient to compile in other ways. I tried compiling a C file that also needs 'string.h' and other header files alone in the BC interface, and there's no problem!)
This error shouldn't be related to the compilation method. (It was okay before)
(Additional: I once encountered this problem before, but it was fine after restarting. This time, restarting multiple times doesn't work!)
Extremely puzzled...
[ Last edited by GOTOmsdos on 2007-1-14 at 12:13 AM ]