Feature request: compile current file in the editor

Dear Arduino Team,

Could you please consider adding feature 'compile current file in the editor' and allow its mapping to a shortcut ?
In other IDEs I've got it mapped to 'Alt + x' - I see it is still available in Arduino IDE.

Keil uVision
image

When I edit a cpp file, I often want to check if my edits are compilable and not neccessarily interested in linking.

Thank you
Frank

Sorry, I can't see the intended target.
IMHO even possible linking errors are relevant especially when changing things on a class, so why don't you just use "Verify" function to test it? I do that every time I just need to check everything I'm writing is formally OK...

"Sorry, I can't see the intended target."

Target is to compile .cpp file currently active in the editor. I do not know IDE without that functionality (uVision, MSVC, QtCreator). It is cruitial feature.

I do and it takes ~15seconds for IDE verifying libraries before it tries to compile my file I am interested in at that moment. When I want to link that is another matter and will deal with that later. So there will be, hopefully, 'Verify Link'(15seconds) and 'Verify file'(150milliseconds).

Yes, but why? Just for a formal syntax testing? I have never had that need, because if I create or change a class I need to check also the other modules using such class.
Anyway, one more functionality doesn't have any kinda drawback and could be useful for someone (even if I don't think I'll never use it, I'm not against the idea...;-)).

"Just for a formal syntax testing?"
Yes.

"I have never had that need"
This is very interesting. In my case it is amongst the most used feature for many years.

"if I create or change a class I need to check also the other modules"
E.g. when you edit class implementation in cpp you might not/dont need to check.

Example:

static constexpr int32_t  SCVbattMax_mV { 10'000 };

I did not know IDE compiler does not accept ' to mark 000. 15s wait.

Next

static constexpr int32_t  SCVbattScaling { INT32_C ( 47 ) };
static_assert ( 212 == SCVbattMax_mV / SCVbattScaling, "" );

I would like to check the assertion. 15s wait.

This is clear, if there are just "internal" changes while keeping the interface unchanged. So I can understand your point of view, even if I have never needed such a "single line" control or on a specific statement (unless I am not very familiar with that specific language, see the "single quote" you used for thousands...), I make a "batch" of changes and test their syntax by compiling the project.

Anyway, to be clear I'm not saying I'm against your proposal... :wink:

"Sorry, I can't see the intended target."

F.e. I work on a structure and all I need is to check the syntax. So to achieve that, I now wait 10seconds just to see that I forgot a semicolon. IDE does its usual 'check all' procedure. I am not interested in libs dependencies, candidates etc. There is no change in libraries. I do not want to build other modules of my app. I work on one module, nothing else - little structure so there is no need to link.

There is already IDE Beta version with 'Upload w/o build' so hopefuly 'Compile current file only' will follow soon.

image


FQBN: arduino:avr:mega
Using board 'mega' from platform in folder: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o nul
Alternatives for ArduinoSTL.h: [ArduinoSTL@1.3.3]
ResolveLibrary(ArduinoSTL.h)
  -> candidates: [ArduinoSTL@1.3.3]
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o nul
Alternatives for global_types.hpp: [cygnus]
ResolveLibrary(global_types.hpp)
  -> candidates: [cygnus]
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src -IC:\Users\frank\Documents\Arduino\libraries\cygnus C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o nul
Alternatives for SD.h: [SD@1.2.4 SD@1.2.4]
ResolveLibrary(SD.h)
  -> candidates: [SD@1.2.4 SD@1.2.4]
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src -IC:\Users\frank\Documents\Arduino\libraries\cygnus -IC:\Users\frank\Documents\Arduino\libraries\SD\src C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src -IC:\Users\frank\Documents\Arduino\libraries\cygnus -IC:\Users\frank\Documents\Arduino\libraries\SD\src -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o nul
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src -IC:\Users\frank\Documents\Arduino\libraries\cygnus -IC:\Users\frank\Documents\Arduino\libraries\SD\src -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\application.cpp -o nul
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\arduino\arduino_com_monitor.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\battery.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\battery_channel.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_adc.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_dipswitch.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_gpio.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_lcd1306.cpp
Alternatives for Adafruit_GFX.h: [Adafruit GFX Library@1.11.9]
ResolveLibrary(Adafruit_GFX.h)
  -> candidates: [Adafruit GFX Library@1.11.9]
Alternatives for Adafruit_I2CDevice.h: [Adafruit BusIO@1.15.0]
ResolveLibrary(Adafruit_I2CDevice.h)
  -> candidates: [Adafruit BusIO@1.15.0]
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
Alternatives for Adafruit_SSD1306.h: [Adafruit SSD1306@2.5.9]
ResolveLibrary(Adafruit_SSD1306.h)
  -> candidates: [Adafruit SSD1306@2.5.9]
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_led.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_relay.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_rtc.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_sd_card.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\drivers\rtc_ds3231.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Generating function prototypes...
C:\Users\frank\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\frank\Documents\Arduino\libraries\ArduinoSTL\src -IC:\Users\frank\Documents\Arduino\libraries\cygnus -IC:\Users\frank\Documents\Arduino\libraries\SD\src -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\frank\Documents\Arduino\libraries\Adafruit_GFX_Library\src -IC:\Users\frank\Documents\Arduino\libraries\Adafruit_BusIO\src -IC:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\frank\Documents\Arduino\libraries\Adafruit_SSD1306\src C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\BATTERY-TESTER.ino.cpp -o C:\Users\frank\AppData\Local\Temp\1243144980\sketch_merged.cpp
C:\Users\frank\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\frank\AppData\Local\Temp\1243144980\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\ArduinoSTL\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\cygnus" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\SD\\src" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\SPI\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\src" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\Wire\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_SSD1306\\src" "C:\\Users\\frank\\AppData\\Local\\Temp\\arduino\\sketches\\878DD41F3D588915ABC8A3E379B6AA88\\sketch\\BATTERY-TESTER.ino.cpp" -o "C:\\Users\\frank\\AppData\\Local\\Temp\\arduino\\sketches\\878DD41F3D588915ABC8A3E379B6AA88\\sketch\\BATTERY-TESTER.ino.cpp.o"
"C:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\ArduinoSTL\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\cygnus" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\SD\\src" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\SPI\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_GFX_Library\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_BusIO\\src" "-IC:\\Users\\frank\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\Wire\\src" "-IC:\\Users\\frank\\Documents\\Arduino\\libraries\\Adafruit_SSD1306\\src" "C:\\Users\\frank\\AppData\\Local\\Temp\\arduino\\sketches\\878DD41F3D588915ABC8A3E379B6AA88\\sketch\\src\\application.cpp" -o "C:\\Users\\frank\\AppData\\Local\\Temp\\arduino\\sketches\\878DD41F3D588915ABC8A3E379B6AA88\\sketch\\src\\application.cpp.o"
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_dipswitch.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\battery_channel.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_gpio.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\battery.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_lcd1306.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_adc.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_led.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\arduino\arduino_com_monitor.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\drivers\rtc_ds3231.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_relay.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_rtc.cpp.o
Using previously compiled file: C:\Users\frank\AppData\Local\Temp\arduino\sketches\878DD41F3D588915ABC8A3E379B6AA88\sketch\src\bsp\bsp_sd_card.cpp.o
C:\Users\frank\Documents\Arduino\BATTERY-TESTER\src\application.cpp:57:5: error: expected ',' or ';' before 'CBattery'
     CBattery gBatteryTest { A0 };
     ^~~~~~~~
C:\Users\frank\Documents\Arduino\BATTERY-TESTER\src\application.cpp: In function 'void app::Run()':
C:\Users\frank\Documents\Arduino\BATTERY-TESTER\src\application.cpp:94:13: error: 'gBatteryTest' was not declared in this scope
             gBatteryTest.sampleVoltage ();
             ^~~~~~~~~~~~
C:\Users\frank\Documents\Arduino\BATTERY-TESTER\src\application.cpp:94:13: note: suggested alternative: 'CBattery'
             gBatteryTest.sampleVoltage ();
             ^~~~~~~~~~~~
             CBattery
Multiple libraries were found for "SD.h"
  Used: C:\Users\frank\Documents\Arduino\libraries\SD
  Not used: C:\Users\frank\AppData\Local\Arduino15\libraries\SD
Using library ArduinoSTL at version 1.3.3 in folder: C:\Users\frank\Documents\Arduino\libraries\ArduinoSTL 
Using library cygnus in folder: C:\Users\frank\Documents\Arduino\libraries\cygnus (legacy)
Using library SD at version 1.2.4 in folder: C:\Users\frank\Documents\Arduino\libraries\SD 
Using library SPI at version 1.0 in folder: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI 
Using library Adafruit GFX Library at version 1.11.9 in folder: C:\Users\frank\Documents\Arduino\libraries\Adafruit_GFX_Library 
Using library Adafruit BusIO at version 1.15.0 in folder: C:\Users\frank\Documents\Arduino\libraries\Adafruit_BusIO 
Using library Wire at version 1.0 in folder: C:\Users\frank\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire 
Using library Adafruit SSD1306 at version 2.5.9 in folder: C:\Users\frank\Documents\Arduino\libraries\Adafruit_SSD1306 
exit status 1

Compilation error: expected ',' or ';' before 'CBattery'

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.