13.07.2015 Views

Guide to the Miracle C Compiler

Guide to the Miracle C Compiler

Guide to the Miracle C Compiler

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Guide</strong> <strong>to</strong> <strong>the</strong> <strong>Miracle</strong> C <strong>Compiler</strong>ErrorMessage#include stdio.hignored--file notfound.function notdeclared '("HelloWorld")'parse error (a),expecting `','' or`SEP' '("HelloWorld") }'parse error (a),expecting `'}'' ''parse error (a),expecting `')'' or`','' '("HelloWorld"'parse error (a),expecting `SEP''{ printf("HelloWorld")variable 'Hello'not found'(Hello, world)'variable 'var' notfoundparse error (a),expecting `')'' or`','' '("HelloWorld)'PossibleexplanationIncorrect pathinformation. Makesure <strong>the</strong> 'include path'and 'base path' in <strong>the</strong>Options><strong>Compiler</strong>menu accurately reflect<strong>the</strong> location of yourcompiler . SeeChecking pathinformation.Missing header file(such as ).Missing semicolon at<strong>the</strong> end of a statement.Missing bracket '}' at<strong>the</strong> end of a function.Missing closeparen<strong>the</strong>sis ')' at <strong>the</strong>end of a statement.Mistaken semicolonplaced before <strong>the</strong>statements attached <strong>to</strong>a function.Missing quotationmarks around a stringconstant.Variable used withoutbeing declared.Missing close quotes at<strong>the</strong> end of a stringconstant.Error Example(none--path-related error)void main( ){printf("Hello, world.");}#includevoid main( ){printf("Hello, world.")}#includevoid main( ){printf("Hello, world.");#includevoid main( ){printf("Hello, world.";{#includevoid main( );{printf("Hello, world.");{#includevoid main( ){printf(Hello, world);{#includevoid main( ){i=1;printf("Hello, world. %i", i)}#includevoid main( ){printf("Hello, world);{http://www.c-compiler.com/guide/index.html (12 of 14) [2/09/2001 8:11:03 AM]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!