Hi All,
I am having trouble getting my code to compile when my chosen board is an Arduino Nano Every as this is the board I am currently using. When I change the board to the Uno, the code compiles with no issue. The code is modified from the example code 00_Register_Operator. This is the error message I am receiving. If it is helpful I can attach the code and the library. Any idea what could be causing this? Thanks!
In file included from c:\users\andre\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from c:\users\andre\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\andre\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\andre\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\andre\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\andre\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\andre\AppData\Local\Temp\arduino-sketch-8102FDBD7F2E48ABC38CF6AB6015742B\sketch\00_Register_Operator_TEST_1.ino.cpp:1:
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:250:9: error: expected identifier before ‘(’ token
GPIO1 = 16,
^
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:250:9: error: expected ‘}’ before ‘(’ token
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:250:9: error: expected unqualified-id before ‘volatile’
GPIO1 = 16,
^
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:250:9: error: expected ‘)’ before ‘volatile’
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:250:9: error: expected ‘)’ before ‘volatile’
In file included from C:\Users\andre\Documents\Arduino\00_Register_Operator_TEST_1\00_Register_Operator_TEST_1.ino:27:0:
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:281:54: error: expected ‘)’ before ‘gpio’
LTE_Shield_error_t setGpioMode(LTE_Shield_gpio_t gpio, LTE_Shield_gpio_mode_t mode);
^~~~
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:281:83: error: expected primary-expression before ‘mode’
LTE_Shield_error_t setGpioMode(LTE_Shield_gpio_t gpio, LTE_Shield_gpio_mode_t mode);
^~~~
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:282:58: error: expected ‘)’ before ‘gpio’
LTE_Shield_gpio_mode_t getGpioMode(LTE_Shield_gpio_t gpio);
^~~~
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:282:62: error: cannot convert ‘LTE_Shield’ to ‘LTE_Shield_gpio_mode_t’ in initialization
LTE_Shield_gpio_mode_t getGpioMode(LTE_Shield_gpio_t gpio);
^
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:326:1: error: expected unqualified-id before ‘private’
private:
^~~~~~~
C:\Users\andre\Documents\Arduino\libraries\SparkFun_LTE_Shield_Arduino_Library\src/SparkFun_LTE_Shield_Arduino_Library.h:395:1: error: expected declaration before ‘}’ token
};
^
exit status 1
Compilation error: exit status 1