E2087 Illegal use of pointer (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Pointers can only be used with these operators:

  • addition(+)
  • subtraction(-)
  • assignment(=)
  • comparison(==)
  • indirection(*)
  • arrow(->)

Your source file used a pointer with some other operator.

Example

int main (void)
{
  char *p;
  p /= 7;     /* ERROR: Illegal Use of Pointer */
  return 0;
}