Important update: Arm Announces End of Life Timeline for Mbed. This site will be archived in July 2026. Read the full announcement.
Compiler Error 147
"declaration is incompatible with "XXX" (declared at line Y of "ZZZ")"¶
Probably you declared the function earlier in a header file, but did not match up the input types.
Example:
/*foobar.h*/ void trigger(int foo); /*foobar.cpp*/ void trigger(int foo, int bar){ //this function only has two inputs instead of the one previously specified. /* Execute trigger function */ }