Welcome

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
Error Message
Possible explanation
Error Example
#include stdio.h ignored--file not found. Incorrect path information. Make sure the 'include path' and 'base path' in the Options>Compiler menu accurately reflect the location of your compiler . See Checking path information. (none--path-related error)

function not declared '("Hello World")'

Missing header file (such as <stdio.h>).
void main( )
 { 
 	printf("Hello, world.");
 }

Parse Error, expecting `','' or `SEP'

Missing semicolon at the end of a statement.
#include  
 void main( )
 { 
 printf("Hello, world.")
 }

Parse Error, expecting `'}'' ''

Missing bracket '}' at the end of a function.
#include 
 void main( )
 { 
 	printf("Hello, world.");

Parse Error, expecting `')'' or `',''

Missing close parenthesis ')' at the end of a statement.
#include 
 void main( )
 { 
 	printf("Hello, world.";
 {

Parse Error, expecting `SEP'

Mistaken semicolon placed before the statements attached to a function.
_______________

Missing close quotes at the end of a string constant.

#include 
 void main( );
 { 
 	printf("Hello, world.");
 {
______________ #include void main( ) { printf("Hello, world); {

variable 'Hello' not found

Missing quotation marks around a string constant.
#include 
 void main( )
 { 
 	printf(Hello, world);
 {

variable 'var' not found

Variable used without being declared.
#include  
 void main( )
 { 
 	i=1;
 printf("Hello, world. %i", i)
 }

View a printer-friendly version