Hi,
Using the web interface I’m having trouble identifying errors using the output after clicking “Verify”. Compared to what I’m used to in python or Arduino, the output is very general. For example, if I make a typo in a variable name on line 55 I get the following error output:
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from Adafruit_Sensor.h:25,
from Adafruit_Sensor.cpp:1:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from Adafruit_Sensor.h:25,
from Adafruit_TSL2591.h:51,
from Adafruit_TSL2591.cpp:48:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
Adafruit_TSL2591.cpp: In member function 'uint32_t Adafruit_TSL2591::calculateLux(uint16_t, uint16_t)':
Adafruit_TSL2591.cpp:169:12: warning: unused variable 'chan0' [-Wunused-variable]
uint32_t chan0, chan1;
^
Adafruit_TSL2591.cpp:169:19: warning: unused variable 'chan1' [-Wunused-variable]
uint32_t chan0, chan1;
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from FreqPeriodCounter.h:15,
from FreqPeriodCounter.cpp:33:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from FreqPeriodCounter.cpp:33:0:
FreqPeriodCounter.h: In constructor 'FreqPeriodCounter::FreqPeriodCounter(byte, long unsigned int (*)(), unsigned int)':
FreqPeriodCounter.h:36:8: warning: 'FreqPeriodCounter::pin' will be initialized after [-Wreorder]
byte pin;
^
FreqPeriodCounter.h:34:12: warning: 'unsigned int FreqPeriodCounter::debounceTime' [-Wreorder]
unsigned debounceTime;
^
FreqPeriodCounter.cpp:35:1: warning: when initialized here [-Wreorder]
FreqPeriodCounter::FreqPeriodCounter(byte pin, unsigned long (*timeFunctionPtr)(), unsigned debounceTime):
^
In file included from ../inc/spark_wiring.h:29:0,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from OneWire/OneWire.cpp:131:0:
OneWire/OneWire.h:31:0: warning: "FALSE" redefined [enabled by default]
#define FALSE 0
^
In file included from ../../core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from ../../core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from ../inc/main.h:37,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
../../core-common-lib/CC3000_Host_Driver/data_types.h:53:0: note: this is the location of the previous definition
#define FALSE (0)
^
In file included from OneWire/OneWire.cpp:131:0:
OneWire/OneWire.h:32:0: warning: "TRUE" redefined [enabled by default]
#define TRUE 1
^
In file included from ../../core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from ../../core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from ../inc/main.h:37,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
../../core-common-lib/CC3000_Host_Driver/data_types.h:57:0: note: this is the location of the previous definition
#define TRUE (!FALSE)
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from pid/pid.cpp:13:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from Adafruit_Sensor.h:25,
from solar_tester.cpp:1:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from solar_tester.cpp:5:0:
OneWire/OneWire.h:31:0: warning: "FALSE" redefined [enabled by default]
#define FALSE 0
^
In file included from ../../core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from ../../core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from ../inc/main.h:37,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/application.h:29,
from Adafruit_Sensor.h:25,
from solar_tester.cpp:1:
../../core-common-lib/CC3000_Host_Driver/data_types.h:53:0: note: this is the location of the previous definition
#define FALSE (0)
^
In file included from solar_tester.cpp:5:0:
OneWire/OneWire.h:32:0: warning: "TRUE" redefined [enabled by default]
#define TRUE 1
^
In file included from ../../core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from ../../core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from ../inc/main.h:37,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/application.h:29,
from Adafruit_Sensor.h:25,
from solar_tester.cpp:1:
../../core-common-lib/CC3000_Host_Driver/data_types.h:57:0: note: this is the location of the previous definition
#define TRUE (!FALSE)
^
solar_tester.cpp: In function 'void RPM_counter_interrupt_service_routine()':
solar_tester.cpp:55:5: error: 'g_rPM_counter' was not declared in this scope
^
make: *** [solar_tester.o] Error 1
That’s 122 lines to go through, nearly all of it not applicable to my issue. Is there a way to turn the verbosity of the error output down? All I care about is one line:
solar_tester.cpp:55:5: error: 'g_rPM_counter' was not declared in this scope
Would I have to do local development to fix this?
Thanks