1399 lines · 37.1 KB · Text
RawDownload
  @item "declaration expected" (Fatal, Error, ANSI-violation)         Something is pretty wrong with the source.    @item "only one input file allowed" (Fatal)         vbcc accepts only a single filename to compile. You can use a        frontend to compile multiple files or perhaps you mistyped an        option.    @item "Flag <%s> specified more than once" ()         You specified a command line option that should be specified only        once more than once. Maybe you have this option in your config-file        and used it in the command line, too?        The first occurrence will override the latter ones.    @item "Flag <%s> needs string" (Fatal)         This option hast to be specified with a string parameter, e.g.        -flag=foobar    @item "Flag <%s> needs value" (Fatal)         This option hast to be specified with an integer parameter, e.g.        -flag=1234    @item "Unknown Flag <%s>" (Fatal)         This option is not recognized by vbcc. Perhaps you mistyped it, used        the wrong case or specified an option of the frontend to vbcc?    @item "No input file" (Fatal)         You did not specify an input file. Your source file should not start        with a '-' and if you use a frontend make sure it has the proper        suffix.    @item "Could not open <%s> for input" (Fatal)         A file could not be opened.    @item "need a struct or union to get a member" (Error, ANSI-violation)         The source contains something like a.b where a is not a structure        or union.    @item "too many (%d) nested blocks" (Fatal, Error)         vbcc only allows a maximum number of nested blocks        (compund-statements). You can increase this number by changing        the line #define MAXN <something> in vbc.h and recompiling vbcc.   @item "left block 0" (Error, ANSI-violation)         This error should not occur.   @item "incomplete struct <%s>" (Error, ANSI-violation)         You tried to get a member of an incomplete structure/union.        You defined struct x y; somewhere without defining struct x@{...@}.   @item "out of memory" (Fatal, Error)         Guess what.   @item "redeclaration of struct <%s>" (Error, ANSI-violation)         You may not redeclare a struct/union in the same block.   @item "incomplete type (%s) in struct" (Error, ANSI-violation)         Every member in a struct/union declaration must be complete.        Perhaps you only wanted a pointer to that type and forgot the '*'?   @item "function (%s) in struct/union" (Error, ANSI-violation)         Functions cannot be members of structs/unions.   @item "redeclaration of struct/union member <%s>" (Error, ANSI-violation)         Two members of a struct/union have the same name.   @item "redeclaration of <%s>" (Error, ANSI-violation)         You used a name already in use in an enumeration.   @item "invalid constant expression" (Error, ANSI-violation)         ??? Nowhere to find...   @item "array dimension must be constant integer" (Error, ANSI-violation)         The dimensions of an array must be constants (real constants,        const int x=100; int y[x]; is not allowed) and integers        (int y[100.0]; is not allowed either).   @item "no declarator and no identifier in prototype" (Error, ANSI-violation)    @item "invalid storage-class in prototype" (Error, ANSI-violation)         Function parameters may only be auto or register.   @item "void not the only function argument" (Error, ANSI-violation)         You tried to declare a function that has an argument of type void        as well as other arguments.   @item "<%s> no member of struct/union" (Error, ANSI-violation)         The struct/union does not contain a member called like that.   @item "increment/decrement is only allowed for aithmetic and pointer types" (Error, ANSI-violation)    @item "functions may not return arrays or functions" (Error, ANSI-violation)    @item "only pointers to functions can be called" (Error, ANSI-violation)         You tried to call something that did not decay into a pointer to        a function.   @item "redefinition of var <%s>" (Error, ANSI-violation)    @item "redeclaration of var <%s> with new storage-class" (Error, ANSI-violation)    @item "first operand of conditional-expression must be arithmetic or pointer type" (Error, ANSI-violation)    @item "multiple definitions of var <%s>" (Error, ANSI-violation)         There have been multiple definitions of a global variable with        initialization.   @item "operands of : do not match" (Error, ANSI-violation)         In an expression of the form a ? b : c        - a and b must have the same type or        - a and b both must have arithmetic types or        - one of them must be a pointer and the other must be void * or 0   @item "function definition in inner block" (Error, ANSI-violation)         C does not allow nested functions.   @item "redefinition of function <%s>" (Error, ANSI-violation)         Defining two functions with the same name in one translation-unit        is no good idea.   @item "invalid storage-class for function" (Error, ANSI-violation)         Functions must not have storage-classes register or auto.   @item "declaration-specifiers expected" (Error, ANSI-violation)    @item "declarator expected" (Error, ANSI-violation)    @item "<%s> is no parameter" (Error, ANSI-violation)         In an old-style function definition you tried to declare a name as        parameter which was not in the identifier-list.   @item "assignment of different structs/unions" (Error, ANSI-violation)    @item "invalid types for assignment" (Error, ANSI-violation)         In an assignment-context (this includes passing arguments to        prototyped functions) the source and target must be one of the        following types:         - both are arithmetic types        - both are the same struct/union        - one of them is a pointer to void and the other one is any pointer        - the target is any pointer and the source is an integral          constant-expression with the value 0        - both are pointer to the same type (here the target may have          additional const/volatile qualifiers - not recursively, however)         Any other combinations should be illegal.   @item "only 0 can be compared against pointer" (Warning, ANSI-violation)         You may not compare a pointer against any other constant but a        0 (null pointer).   @item "pointers do not point to the same type" (Warning, ANSI-violation)         You tried to compare or assign pointers that point to different        types. E.g. the types they point to may have different attributes.   @item "function initialized" (Error, Fatal, ANSI-violation)         There was a '=' after a function declaration.   @item "initialization of incomplete struct" (Error, Fatal, ANSI-violation)         A structure is incomplete if the only its name, but not the        content is known. You cannot do much with such structures.   @item "initialization of incomplete union" (Error, Fatal, ANSI-violation)         A union is incomplete if the only its name, but not the        content is known. You cannot do much with such unions.   @item "empty initialization" (Error, ANSI-violation)         There was no valid expression after the '=' in a variable definition.   @item "initializer not a constant" (Error, ANSI-violation)         Static variables and compound types may only be initialized with        constants.        Variables with const qualifier are no valid constant-expressions        here.         Addresses of static variables are ok, but casting them may turn        them into non-constant-expressions.   @item "double type-specifier" (Warning, ANSI-violation)    @item "illegal type-specifier" (Warning, ANSI-violation)    @item "multiple storage-classes" (Warning, ANSI-violation)    @item "storage-class specifier should be first" (Warning, ANSI-violation)    @item "bitfields must be ints" (Warning, ANSI-violation)    @item "bitfield width must be constant integer" (Warning, ANSI-violation)    @item "struct/union member needs identifier" (Warning, ANSI-violation)    @item "; expected" (Warning, ANSI-violation)         Probably you forgot a ';' or there is a syntactic error in an        expression.   @item "struct/union has no members" (Warning, ANSI-violation)         You defined an empty struct or union.   @item "@} expected" (Warning, ANSI-violation)    @item ", expected" (Warning, ANSI-violation)    @item "invalid unsigned" (Warning, ANSI-violation)    @item ") expected" (Warning, ANSI-violation)    @item "array dimension has sidefx (will be ignored)" (Warning, ANSI-violation)    @item "array of size 0 (set to 1)" (Warning, ANSI-violation)         ANSI C does not allow arrays or any objects to have a size of 0.   @item "] expected" (Warning, ANSI-violation)    @item "mixed identifier- and parameter-type-list" (Warning, ANSI-violation)    @item "var <%s> was never assigned a value" (Warning)    @item "var <%s> was never used" (Warning)    @item "invalid storage-class" (Warning, ANSI-violation)    @item "type defaults to int" (Warning)    @item "redeclaration of var <%s> with new type" (Warning, ANSI-violation)    @item "redeclaration of parameter <%s>" (Warning, ANSI-violation)    @item ": expected" (Warning, ANSI-violation)    @item "illegal escape-sequence in string" (Warning, ANSI-violation)    @item "character constant contains multiple chars" (Warning)    @item "could not evaluate sizeof-expression" (Error, ANSI-violation)    @item "" expected (unterminated string)" (Error, ANSI-violation)    @item "something wrong with numeric constant" (Error, ANSI-violation)    @item "identifier expected" (Fatal, Error, ANSI-violation)    @item "definition does not match previous declaration" (Warning, ANSI-violation)    @item "integer added to illegal pointer" (Warning, ANSI-violation)    @item "offset equals size of object" (Warning)    @item "offset out of object" (Warning, ANSI-violation)    @item "only 0 should be cast to pointer" (Warning)    @item "unknown identifier <%s>" (Error, ANSI-violation)    @item "too few function arguments" (Warning, ANSI-violation)    @item "division by zero (result set to 0)" (Warning, ANSI-violation)    @item "assignment of different pointers" (Warning, ANSI-violation)    @item "lvalue required for assignment" (Error, ANSI-violation)    @item "assignment to constant type" (Error, ANSI-violation)    @item "assignment to incomplete type" (Error, ANSI-violation)    @item "operands for || and && have to be arithmetic or pointer" (Error, ANSI-violation)    @item "bitwise operations need integer operands" (Error, ANSI-violation)    @item "assignment discards const" (Warning, ANSI-violation)         You assigned something like (const type *) to (type *).   @item "relational expression needs arithmetic or pointer type" (Error, ANSI-violation)    @item "both operands of comparison must be pointers" (Error, ANSI-violation)         You wrote an expression like a == b where one operand was a pointer        while the other was not. Perhaps a function is not declared correctly        or you used NULL instead of 0?   @item "operand needs arithmetic type" (Error, ANSI-violation)    @item "pointer arithmetic with void * is not possible" (Error, ANSI-violation)         Adding/subtracting from a pointer to void is not possible.   @item "pointers can only be subtracted" (Error, ANSI-violation)         You cannot add, multiply etc. two pointers.   @item "invalid types for operation <%s>" (Error, ANSI-violation)    @item "invalid operand type" (Error, ANSI-violation)    @item "integer-pointer is not allowed" (Error, ANSI-violation)         You may not subtract a pointer from an integer.        Adding an integer or subtracting it from a pointer is ok.  @item "assignment discards volatile" (Warning, ANSI-violation)         You assigned something like (volatile type *) to (type *).

Lines 1–500 of 1399.