About Miracle C

Compiler Basics

Download & Setup

Using Miracle C

C programming resources

Guide to the Miracle C Compiler

Using Miracle C

Understanding Common Error Messages

1 2

When a compiler translates your source code into object code, it will reject code that does not conform to C language rules. If it finds anything that doesn't conform to the rules, it displays an error message in the output window.

Error messages can have a variety of causes: faulty path information, missing header files, undeclared variables, and so forth. Most of the error messages you are likely to get when compiling simple programs, however, are the result of "syntax errors"--flaws not in the logic of your program but in the expression of that logic. Syntax errors are often merely typographical: missing semicolons, misplaced brackets, and so forth.

Unfortunately, no compiler can tell you "You forgot the semicolon after the statement," or "You forgot the header file." It can only tell you what it expected to find, but did not find, in your code. Because of this, C compiler error messages can be cryptic. With a little practice, though, you will be able to quickly locate and fix common errors in your code based on Miracle C error messages.

The table on the following page provides brief explanations of some of the most common error messages returned by Miracle C.

View the error message table