expected declaration specifiers error
Posted: Wed Sep 19, 2018 6:51 am
Hello, when I am trying to add a function "void motorsSetRatio(0, 10);" into main.c, I am getting below shown error. It sounds like I am missing something silly, but can you help me with this? I have included motors.h header file.
expected declaration specifiers or '...' before numeric constant
void motorsSetRatio(0, 10);
^
src/init/main.c:63:26: error: expected declaration specifiers or '...' before numeric constant
void motorsSetRatio(0, 10);
expected declaration specifiers or '...' before numeric constant
void motorsSetRatio(0, 10);
^
src/init/main.c:63:26: error: expected declaration specifiers or '...' before numeric constant
void motorsSetRatio(0, 10);