Return to main page

C Errors

  • for loop initial declarations are only allowed in C99 mode
  • struct student has no member named units
  • x undeclared (first use in this function)
  • #include nested too deeply
  • array size missing in a
  • array subscript is not an integer
  • assignment of read-only variable foo
  • character constant too long for its type
  • conflicting types for foo
  • expected ; before
  • expected { before * token
  • expected =, ,, ;, asm or __attribute__ before printf
  • expected declaration or statement at end of input
  • expected declaration specifiers before printf
  • extra tokens at end of #include directive
  • incompatible implicit declaration of built-in function
  • incompatible types when initializing type int using type struct student
  • initialization makes integer from pointer without a cast
  • initializer element is not constant
  • invalid operands to binary == (have int and struct student)
  • invalid type argument of -> (have struct student)
  • invalid type argument of unary *
  • missing terminating " character
  • No such file or directory compilation terminated.
  • redefinition of x
  • request for member id_number in something not a structure or union
  • storage size of bar isnt known
  • subscripted value is neither array nor pointer nor vector
  • switch quantity not an integer
  • too many arguments to function foo
  • undefined reference to `foo
  • unknown escape sequence
  • unknown type name _student_
  • unterminated comment
  • void value not ignored as it ought to be
  • Can't find what you're looking for? Send us your error!

    Helpful links

  • Common compiler errors