Mercurial > hg > Members > kono > nitros9-code
view docs/ccguide/errors.appendix @ 554:afff0087c27f
findstr and signal finished.
author | roug |
---|---|
date | Tue, 22 Oct 2002 19:09:04 +0000 |
parents | fcb97f0ba24b |
children | 497d17b4b264 |
line wrap: on
line source
<appendix> <title>Compiler Generated Error Messages</title> <para> The error codes are shown in both hexadecimal (first column) and decimal (second column). Error codes other than those listed are generated by programming languages or user programs. </para> <variablelist> <varlistentry><term>already a local variable</term> <listitem> <para> Variable has already been declared at the current block level. (8.1, 9.2) </para> </listitem> </varlistentry> <varlistentry><term>argument : <text></term> <listitem> <para> Error from preprocessor. Self-explanatory. Most common cause of this error is not being able to find an include file. </para> </listitem> </varlistentry> <varlistentry><term>argument error</term> <listitem> <para> Function argument declared as type struct, union or function. Pointers to such types, however are allowed. (10.1) </para> </listitem> </varlistentry> <varlistentry><term>argument storage</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>bad character</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>both must be integral</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>break error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>can't take address</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>cannot cast</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>cannot evaluate data</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>cannot initialize</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>compiler trouble</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>condition needed</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>constant expression required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>constant overflow</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>constant required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>continue error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>declaration mismatch</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>divide by zero</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>? expected</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>expression missing</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>function header missing</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>function type error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>function unfinished</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>identifier missing</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>illegal declaration</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>label required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>label undefined</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>lvalue required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>multiple defaults</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>multiple definition</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>must be integral</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>name clash</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>name in cast</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>named twice</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>no 'if' for 'else'</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>no switch statement</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>not a function</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>not an argument</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>operand expected</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>out of memory</term> <listitem> <para> Compiler dynamic memory overflow. The compiler requires dynamic memory for symbol table entries, block level declarations and code generation. Three major factors affect this memory usage. Permanent declarations (those appearing on the outer block level (used in include files)) must be reserved from the dynamic memory for the duration of the compilation of the file. Each { causes the compiler to perform a block-level recursion which may involve "pushing down" previous declarations which consume memory. Auto class initializers require saving expression trees until past the declarations which may be very memory-expensive if may exist. Avoiding excessive declarations, both permanent and inside compound statement blocks conserve memory. If this error occurs on an auto initializer, try initializing the value in the code body. </para> </listitem> </varlistentry> <varlistentry><term>pointer mismatch</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>pointer or integer required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>pointer required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>primary expected</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>should be NULL</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>**** STACK OVERFLOW ****</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>storage error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>struct member mismatch</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>struct member required</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>struct syntax</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>struct or union inappropiate</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>syntax error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>third expression missing</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>too long</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>too many brackets</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>too many elements</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>type error</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>type mismatch</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>typedef - not a variable</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>undeclared variable</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>undefined structure</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>unions not allowed</term> <listitem> <para> </para> </listitem> </varlistentry> <varlistentry><term>unterminated character constant</term> <listitem> <para> Unmatched ' character delimiters. (2.4.3) </para> </listitem> </varlistentry> <varlistentry><term>unterminated string</term> <listitem> <para> Unmatched " string delimiters. (2.5) </para> </listitem> </varlistentry> <varlistentry><term>while expected</term> <listitem> <para> No while found for do statement. (9.5) </para> </listitem> </varlistentry> </variablelist> </appendix>