home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
chk_er.zip
/
README.TXT
< prev
Wrap
Text File
|
1992-11-24
|
3KB
|
86 lines
======================================================================
Read Me file for CHK_ERR.EXE 11/24/92
======================================================================
CHK_ERR.EXE is an OS/2 utility that helps a programmer using the IBM C
compiler to make better use of the informational, warning, and error
messages printed out by the compiler. It allows the programmer to
specify which messages are meaningful and which are to be ignored
according to his or her own programming style.
To use this program, first create a data file called CHK_ERR.DAT in
the directory where you are compiling your programs. Any lines that
are blank or contain a semi-colon (';') in the first character of
the line are ignored. All other lines should contain a message
number (for instance, EDC0851), one message number per line. The
message numbers listed in this file are the ones that you consider
are to be ignored.
The usage for the CHK_ERR program is as follows:
CHK_ERR <input_file> <output_file>
where:
<input_file> - This is the name of the file that contains
all of the messages from the program compile.
<output_file> - This file will contain only the messages
that had message numbers that were not
listed in the CHK_ERR.DAT file.
(I personally use this file as an
error file for the Brief editor so that I
can quickly edit any errors.)
The CHK_ERR program will read from the input file and write to the
output file specified. Any error, warning, or informational message
numbers that were not found in the CHK_ERR.DAT file will be written
to the output file. If any records are written to the output file,
CHK_ERR will return an error status.
A possible way to set up your makefile could be as follows:
▒▒
▒▒ c_opts = /W3 /Kf+ /C+ ...(and other C compiler options)
▒▒
▒▒ .c.obj:
▒▒ @Echo ▒▒ Building $@
▒▒ @-icc $(c_opts) $*.c >$*.msg
▒▒ @chk_err $*.msg $*.err
▒▒ @erase $*.err
▒▒
▒▒ .obj.exe:
▒▒ @Echo ▒▒ Building $@
▒▒ @link386 /nologo /noi $**,$@; >$*.log
▒▒
Notice that the options "/W3" and "/Kf+" are used to generate the
most messages from the compiler.
Also notice that the error value returned from ICC is ignored. CHK_ERR
will return an error status (thus ending the make) if any errors are
copied to the output file.
CHK_ERR is released as free-ware. You may use the program as you see
fit though it may not be sold. Please direct questions or comments
to:
Dave F. Baskin
Compuserve ID: 73340,3533
The source code to this program (written in C and compiled by the IBM
C compiler), can be obtained for $10 by writing to:
Dave F. Baskin
P.O. Box 616
Hahira, GA 31632
If you have one, please include a Compuserve ID to which I can mail the
source code. Thanks and enjoy!
======================================================================
End of README.TXT
======================================================================