====================================================================== 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 where: - This is the name of the file that contains all of the messages from the program compile. - 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 ======================================================================