You are viewing an older revision! See the latest version

Compiler Error L6218E

  • Incorrect Types in function headers. For example:

void foo(unsigned char * foo1);
void foo(char*foo1){};
  • Or not initializing a static member of a class, e.g.:

class Foo {
  public:
    static int bar;
    static void isr();
};

void Foo::isr() {
    bar++;
}

// WILL FAIL WITHOUT THIS INITIALIZATION:
int Foo::bar = 0;

int main() { while (1) ; }

All wikipages