Article # 142, added by Geoworks, historical record
| first | previous | index | next | last |

Keep getting compiler errors in a scan.c file.



Q. When I run "mkmf" on my source code, I get this error:

   Assertion failed: *cp == '\n', file scan.c line 1658
   Abnormal program termination

   What does that mean? What do I need to do to fix it?

A. The cause of the error is simple - you don't have a blank line
   at the end of all your source files. This happens because of a
   bug in one of the C routines (unputc()) that the tools use. A
   resolution to this bug may not be possible, so you'll need to
   maintain a blank line at the end of all of your source code files.

   Note, the error only seems to show up when the last line of a
   source file (either .goh or .goc) has an @endif or #endif and
   is not followed by an EOL (end-of-line) character.