-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I am trying to build this basic for arduino uno using platformio. I copied all .ino code to main.cpp. I copied other files in the same src folder with same names. I also added #include <Arduino.h> to all the files. When I compile I encounter following two errors and compilation fails. What could be causing this?
src\main.cpp: In function 'number_t getvar(mem_t, mem_t)':
src\main.cpp:1100:30: warning: invalid conversion from 'mem_t ()(address_t) {aka signed char ()(unsigned int)}' to 'mem_t {aka signed char}' [-fpermissive]
return getnumber(a, memread2);
^
In file included from src\main.cpp:37:0:
src\basic.h:437:6: note: initializing argument 2 of 'void getnumber(address_t, mem_t)'
void getnumber(address_t, mem_t);
^~~~~~~~~
src\main.cpp:1100:30: error: void value not ignored as it ought to be
return getnumber(a, memread2);
^
src\main.cpp: In function 'void setvar(mem_t, mem_t, number_t)':
src\main.cpp:1167:27: warning: invalid conversion from 'void ()(address_t, mem_t) {aka void ()(unsigned int, signed char)}' to 'mem_t {aka signed char}' [-fpermissive]
setnumber(a, memwrite2, v);
^
src\main.cpp:1167:27: error: too many arguments to function 'void setnumber(address_t, mem_t)'
In file included from src\main.cpp:37:0: