¿ªÔÆÌåÓý

Compiling Ubidx_5 errors


 

I am not a programmer especially in C. I am trying to compile the V5 code and keep getting compile errors, Anyone have any help,,, Here are the errors as follows..??

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
?
sketch\Ubix 5.1.c:33:2: error: stray '#' in program
?
?*#include <Wire.h>
?
? ^
?
sketch\Ubix 5.1.c:33:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
?
?*#include <Wire.h>
?
? ? ? ? ? ?^
?
In file included from c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\lib\gcc\avr\5.4.0\include\stdint.h:9:0,
?
? ? ? ? ? ? ? ? ?from c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\inttypes.h:37,
?
? ? ? ? ? ? ? ? ?from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:24,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:34:
?
c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\stdint.h:163:9: error: unknown type name 'int8_t'
?
?typedef int8_t? ?int_least8_t;
?
? ? ? ? ?^
?
c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\stdint.h:217:9: error: unknown type name 'int8_t'
?
?typedef int8_t int_fast8_t;
?
? ? ? ? ?^
?
In file included from sketch\Ubix 5.1.c:34:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:38:5: error: expected specifier-qualifier-list before 'EERef'
?
? ? ?EERef( const int index )
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:89:5: error: expected specifier-qualifier-list before 'EEPtr'
?
? ? ?EEPtr( const int index )
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:119:5: error: unknown type name 'EERef'
?
? ? ?EERef operator[]( const int idx )? ? { return idx; }
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:119:42: error: expected ':', ',', ';', '}' or '__attribute__' before '{' token
?
? ? ?EERef operator[]( const int idx )? ? { return idx; }
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
In file included from sketch\Ubix 5.1.c:34:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:145:8: error: unknown type name 'EEPROMClass'
?
?static EEPROMClass EEPROM;
?
? ? ? ? ^
?
In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:27:0,
?
? ? ? ? ? ? ? ? ?from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:5,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:96:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:25:1: error: unknown type name 'class'
?
?class Print;
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:33:1: error: unknown type name 'class'
?
?class Printable
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
?
?{
?
?^
?
In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:5:0,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:96:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:37:1: error: unknown type name 'class'
?
?class Print
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:38:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
?
?{
?
?^
?
In file included from sketch\Ubix 5.1.c:96:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:45:1: error: unknown type name 'class'
?
?class LiquidCrystal : public Print {
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
?
?class LiquidCrystal : public Print {
?
? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:1: error: unknown type name 'LiquidCrystal'
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
?^
?
sketch\Ubix 5.1.c:97:19: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:21: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:23: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:26: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:97:29: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:32: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:186:1: error: unknown type name 'int8_t'
?
?int8_t meter_reading = 0; // a -1 on meter makes it invisible
?
?^
?
sketch\Ubix 5.1.c:195:1: error: unknown type name 'byte'
?
?byte cwDelayTime = 60;
?
?^
?
sketch\Ubix 5.1.c:196:1: error: unknown type name 'bool'
?
?bool Iambic_Key = true;
?
?^
?
sketch\Ubix 5.1.c:196:19: error: 'true' undeclared here (not in a function)
?
?bool Iambic_Key = true;
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:204:1: error: unknown type name 'boolean'
?
?boolean txCAT = false;? ? ? ? //turned on if the transmitting due to a CAT command
?
?^
?
sketch\Ubix 5.1.c:204:17: error: 'false' undeclared here (not in a function)
?
?boolean txCAT = false;? ? ? ? //turned on if the transmitting due to a CAT command
?
? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:210:1: error: unknown type name 'byte'
?
?byte menuOn = 0;? ? ? ? ? ? ? //set to 1 when the menu is being displayed, if a menu item sets it to zero, the menu is exited
?
?^
?
sketch\Ubix 5.1.c:214:1: error: unknown type name 'boolean'
?
?boolean modeCalibrate = false;//this mode of menus shows extended menus to calibrate the oscillators and choose the proper
?
?^
?
sketch\Ubix 5.1.c: In function 'active_delay':
?
sketch\Ubix 5.1.c:227:29: warning: implicit declaration of function 'millis' [-Wimplicit-function-declaration]
?
? ?unsigned long timeStart = millis();
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c: In function 'setTXFilters':
?
sketch\Ubix 5.1.c:254:5: warning: implicit declaration of function 'digitalWrite' [-Wimplicit-function-declaration]
?
? ? ?digitalWrite(TX_LPF_A, 0);
?
? ? ?^
?
sketch\Ubix 5.1.c: In function 'setFrequency':
?
sketch\Ubix 5.1.c:320:3: error: expected expression before 'if'
?
? ?if (isUSB){
?
? ?^
?
sketch\Ubix 5.1.c: At top level:
?
sketch\Ubix 5.1.c:349:14: error: unknown type name 'byte'
?
?void startTx(byte txMode){
?
? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'stopTx':
?
sketch\Ubix 5.1.c:397:2: warning: implicit declaration of function 'si5351bx_setfreq' [-Wimplicit-function-declaration]
?
? si5351bx_setfreq(0, usbCarrier);? //set back the cardrier oscillator anyway, cw tx switches it off
?
? ^
?
sketch\Ubix 5.1.c:417:3: warning: implicit declaration of function 'updateDisplay' [-Wimplicit-function-declaration]
?
? ?updateDisplay();
?
? ?^
?
sketch\Ubix 5.1.c: In function 'checkPTT':
?
sketch\Ubix 5.1.c:455:7: warning: implicit declaration of function 'digitalRead' [-Wimplicit-function-declaration]
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: error: 'A3' undeclared (first use in this function)
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:455:19: note: in expansion of macro 'PTT'
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: note: each undeclared identifier is reported only once for each function it appears in
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:455:19: note: in expansion of macro 'PTT'
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:456:5: warning: implicit declaration of function 'startTx' [-Wimplicit-function-declaration]
?
? ? ?startTx(TX_SSB);
?
? ? ?^
?
sketch\Ubix 5.1.c: In function 'checkButton':
?
sketch\Ubix 5.1.c:468:8: warning: implicit declaration of function 'btnDown' [-Wimplicit-function-declaration]
?
? ?if (!btnDown())
?
? ? ? ? ^
?
sketch\Ubix 5.1.c:474:3: warning: implicit declaration of function 'doMenu' [-Wimplicit-function-declaration]
?
? ?doMenu();
?
? ?^
?
sketch\Ubix 5.1.c: In function 'doTuning':
?
sketch\Ubix 5.1.c:494:7: warning: implicit declaration of function 'enc_read' [-Wimplicit-function-declaration]
?
? ?s = enc_read();
?
? ? ? ?^
?
sketch\Ubix 5.1.c: In function 'initSettings':
?
sketch\Ubix 5.1.c:548:3: error: unknown type name 'byte'
?
? ?byte x;
?
? ?^
?
sketch\Ubix 5.1.c:551:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(MASTER_CAL, calibration);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:552:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(USB_CAL, usbCarrier);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:553:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_A, vfoA);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:554:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_B, vfoB);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:555:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(CW_SIDETONE, sideTone);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:556:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(CW_SPEED, cwSpeed);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:560:4: error: expected expression before 'void'
?
? ? void usbCarrier = 11052000l;
?
? ? ^
?
sketch\Ubix 5.1.c:575:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_A_MODE, x);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:591:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_B_MODE, x);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:612:10: error: request for member 'get' in something not a structure or union
?
? ? EEPROM.get(CW_KEY_TYPE, x);
?
? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'initPorts':
?
sketch\Ubix 5.1.c:629:3: warning: implicit declaration of function 'analogReference' [-Wimplicit-function-declaration]
?
? ?analogReference(DEFAULT);
?
? ?^
?
sketch\Ubix 5.1.c:629:19: error: 'DEFAULT' undeclared (first use in this function)
?
? ?analogReference(DEFAULT);
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:632:3: warning: implicit declaration of function 'pinMode' [-Wimplicit-function-declaration]
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ?^
?
sketch\Ubix 5.1.c:75:16: error: 'A0' undeclared (first use in this function)
?
?#define ENC_A (A0)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:632:11: note: in expansion of macro 'ENC_A'
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:632:18: error: 'INPUT_PULLUP' undeclared (first use in this function)
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:76:16: error: 'A1' undeclared (first use in this function)
?
?#define ENC_B (A1)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:633:11: note: in expansion of macro 'ENC_B'
?
? ?pinMode(ENC_B, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:77:18: error: 'A2' undeclared (first use in this function)
?
?#define FBUTTON (A2)
?
? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:634:11: note: in expansion of macro 'FBUTTON'
?
? ?pinMode(FBUTTON, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: error: 'A3' undeclared (first use in this function)
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:640:11: note: in expansion of macro 'PTT'
?
? ?pinMode(PTT, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:79:23: error: 'A6' undeclared (first use in this function)
?
?#define ANALOG_KEYER (A6)
?
? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:641:11: note: in expansion of macro 'ANALOG_KEYER'
?
? ?pinMode(ANALOG_KEYER, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:643:20: error: 'OUTPUT' undeclared (first use in this function)
?
? ?pinMode(CW_TONE, OUTPUT);
?
? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'setup':
?
sketch\Ubix 5.1.c:662:3: error: 'Serial' undeclared (first use in this function)
?
? ?Serial.begin(38400);
?
? ?^
?
sketch\Ubix 5.1.c:665:3: error: 'lcd' undeclared (first use in this function)
?
? ?lcd.begin(16, 2);
?
? ?^
?
sketch\Ubix 5.1.c:669:3: warning: implicit declaration of function 'printLine2' [-Wimplicit-function-declaration]
?
? ?printLine2("uBITX v5.1");
?
? ?^
?
sketch\Ubix 5.1.c:675:3: warning: implicit declaration of function 'initOscillators' [-Wimplicit-function-declaration]
?
? ?initOscillators();
?
? ?^
?
sketch\Ubix 5.1.c:682:5: warning: implicit declaration of function 'factory_alignment' [-Wimplicit-function-declaration]
?
? ? ?factory_alignment();
?
? ? ?^
?
sketch\Ubix 5.1.c: At top level:
?
sketch\Ubix 5.1.c:690:1: error: unknown type name 'byte'
?
?byte flasher = 0;
?
?^
?
sketch\Ubix 5.1.c: In function 'loop':
?
sketch\Ubix 5.1.c:693:3: warning: implicit declaration of function 'cwKeyer' [-Wimplicit-function-declaration]
?
? ?cwKeyer();
?
? ?^
?
sketch\Ubix 5.1.c:707:3: warning: implicit declaration of function 'checkCAT' [-Wimplicit-function-declaration]
?
? ?checkCAT();
?
? ?^
?
sketch\Ubix 5.1.c:231:10: note: previous declaration of 'checkCAT' was here
?
? ? ?void checkCAT(int);
?
? ? ? ? ? ^
?
sketch\Ubix 5.1.c:707:3: error: incompatible implicit declaration of function 'checkCAT'
?
? ?checkCAT();
?
? ?^
?
sketch\Ubix 5.1.c:231:10: note: previous implicit declaration of 'checkCAT' was here
?
? ? ?void checkCAT(int);
?
? ? ? ? ? ^
?
Multiple libraries were found for "Wire.h"
?Used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire
?Not used: C:\Users\Tom\Documents\Arduino\libraries\Wire
exit status 1
Error compiling for board Arduino/Genuino Uno.
?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
?
--
W0KFL / Tom Raber


 

BTW I am using?ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt

--
W0KFL / Tom Raber


Jack Purdum
 

That looks like an asterisk in from of the #include. Check that first as I think the rest of them result from being out of sync from the asterisk.

Jack, W8TEE

On Tuesday, March 26, 2019, 12:06:00 PM EDT, w0kfl via Groups.Io <w0kfl@...> wrote:


I am not a programmer especially in C. I am trying to compile the V5 code and keep getting compile errors, Anyone have any help,,, Here are the errors as follows..??

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
?
sketch\Ubix 5.1.c:33:2: error: stray '#' in program
?
?*#include <Wire.h>
?
? ^
?
sketch\Ubix 5.1.c:33:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
?
?*#include <Wire.h>
?
? ? ? ? ? ?^
?
In file included from c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\lib\gcc\avr\5.4.0\include\stdint.h:9:0,
?
? ? ? ? ? ? ? ? ?from c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\inttypes.h:37,
?
? ? ? ? ? ? ? ? ?from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:24,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:34:
?
c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\stdint.h:163:9: error: unknown type name 'int8_t'
?
?typedef int8_t? ?int_least8_t;
?
? ? ? ? ?^
?
c:\program files\windowsapps\arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\stdint.h:217:9: error: unknown type name 'int8_t'
?
?typedef int8_t int_fast8_t;
?
? ? ? ? ?^
?
In file included from sketch\Ubix 5.1.c:34:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:38:5: error: expected specifier-qualifier-list before 'EERef'
?
? ? ?EERef( const int index )
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:89:5: error: expected specifier-qualifier-list before 'EEPtr'
?
? ? ?EEPtr( const int index )
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:119:5: error: unknown type name 'EERef'
?
? ? ?EERef operator[]( const int idx )? ? { return idx; }
?
? ? ?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:119:42: error: expected ':', ',', ';', '}' or '__attribute__' before '{' token
?
? ? ?EERef operator[]( const int idx )? ? { return idx; }
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
In file included from sketch\Ubix 5.1.c:34:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:145:8: error: unknown type name 'EEPROMClass'
?
?static EEPROMClass EEPROM;
?
? ? ? ? ^
?
In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:27:0,
?
? ? ? ? ? ? ? ? ?from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:5,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:96:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:25:1: error: unknown type name 'class'
?
?class Print;
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:33:1: error: unknown type name 'class'
?
?class Printable
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Printable.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
?
?{
?
?^
?
In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:5:0,
?
? ? ? ? ? ? ? ? ?from sketch\Ubix 5.1.c:96:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:37:1: error: unknown type name 'class'
?
?class Print
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Print.h:38:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
?
?{
?
?^
?
In file included from sketch\Ubix 5.1.c:96:0:
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:45:1: error: unknown type name 'class'
?
?class LiquidCrystal : public Print {
?
?^
?
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\LiquidCrystal\src/LiquidCrystal.h:45:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
?
?class LiquidCrystal : public Print {
?
? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:1: error: unknown type name 'LiquidCrystal'
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
?^
?
sketch\Ubix 5.1.c:97:19: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:21: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:23: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:26: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:97:29: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:97:32: error: expected declaration specifiers or '...' before numeric constant
?
?LiquidCrystal lcd(8,9,10,11,12,13);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:186:1: error: unknown type name 'int8_t'
?
?int8_t meter_reading = 0; // a -1 on meter makes it invisible
?
?^
?
sketch\Ubix 5.1.c:195:1: error: unknown type name 'byte'
?
?byte cwDelayTime = 60;
?
?^
?
sketch\Ubix 5.1.c:196:1: error: unknown type name 'bool'
?
?bool Iambic_Key = true;
?
?^
?
sketch\Ubix 5.1.c:196:19: error: 'true' undeclared here (not in a function)
?
?bool Iambic_Key = true;
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:204:1: error: unknown type name 'boolean'
?
?boolean txCAT = false;? ? ? ? //turned on if the transmitting due to a CAT command
?
?^
?
sketch\Ubix 5.1.c:204:17: error: 'false' undeclared here (not in a function)
?
?boolean txCAT = false;? ? ? ? //turned on if the transmitting due to a CAT command
?
? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:210:1: error: unknown type name 'byte'
?
?byte menuOn = 0;? ? ? ? ? ? ? //set to 1 when the menu is being displayed, if a menu item sets it to zero, the menu is exited
?
?^
?
sketch\Ubix 5.1.c:214:1: error: unknown type name 'boolean'
?
?boolean modeCalibrate = false;//this mode of menus shows extended menus to calibrate the oscillators and choose the proper
?
?^
?
sketch\Ubix 5.1.c: In function 'active_delay':
?
sketch\Ubix 5.1.c:227:29: warning: implicit declaration of function 'millis' [-Wimplicit-function-declaration]
?
? ?unsigned long timeStart = millis();
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c: In function 'setTXFilters':
?
sketch\Ubix 5.1.c:254:5: warning: implicit declaration of function 'digitalWrite' [-Wimplicit-function-declaration]
?
? ? ?digitalWrite(TX_LPF_A, 0);
?
? ? ?^
?
sketch\Ubix 5.1.c: In function 'setFrequency':
?
sketch\Ubix 5.1.c:320:3: error: expected expression before 'if'
?
? ?if (isUSB){
?
? ?^
?
sketch\Ubix 5.1.c: At top level:
?
sketch\Ubix 5.1.c:349:14: error: unknown type name 'byte'
?
?void startTx(byte txMode){
?
? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'stopTx':
?
sketch\Ubix 5.1.c:397:2: warning: implicit declaration of function 'si5351bx_setfreq' [-Wimplicit-function-declaration]
?
? si5351bx_setfreq(0, usbCarrier);? //set back the cardrier oscillator anyway, cw tx switches it off
?
? ^
?
sketch\Ubix 5.1.c:417:3: warning: implicit declaration of function 'updateDisplay' [-Wimplicit-function-declaration]
?
? ?updateDisplay();
?
? ?^
?
sketch\Ubix 5.1.c: In function 'checkPTT':
?
sketch\Ubix 5.1.c:455:7: warning: implicit declaration of function 'digitalRead' [-Wimplicit-function-declaration]
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: error: 'A3' undeclared (first use in this function)
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:455:19: note: in expansion of macro 'PTT'
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: note: each undeclared identifier is reported only once for each function it appears in
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:455:19: note: in expansion of macro 'PTT'
?
? ?if (digitalRead(PTT) == 0 && inTx == 0){
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:456:5: warning: implicit declaration of function 'startTx' [-Wimplicit-function-declaration]
?
? ? ?startTx(TX_SSB);
?
? ? ?^
?
sketch\Ubix 5.1.c: In function 'checkButton':
?
sketch\Ubix 5.1.c:468:8: warning: implicit declaration of function 'btnDown' [-Wimplicit-function-declaration]
?
? ?if (!btnDown())
?
? ? ? ? ^
?
sketch\Ubix 5.1.c:474:3: warning: implicit declaration of function 'doMenu' [-Wimplicit-function-declaration]
?
? ?doMenu();
?
? ?^
?
sketch\Ubix 5.1.c: In function 'doTuning':
?
sketch\Ubix 5.1.c:494:7: warning: implicit declaration of function 'enc_read' [-Wimplicit-function-declaration]
?
? ?s = enc_read();
?
? ? ? ?^
?
sketch\Ubix 5.1.c: In function 'initSettings':
?
sketch\Ubix 5.1.c:548:3: error: unknown type name 'byte'
?
? ?byte x;
?
? ?^
?
sketch\Ubix 5.1.c:551:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(MASTER_CAL, calibration);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:552:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(USB_CAL, usbCarrier);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:553:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_A, vfoA);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:554:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_B, vfoB);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:555:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(CW_SIDETONE, sideTone);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:556:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(CW_SPEED, cwSpeed);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:560:4: error: expected expression before 'void'
?
? ? void usbCarrier = 11052000l;
?
? ? ^
?
sketch\Ubix 5.1.c:575:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_A_MODE, x);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:591:9: error: request for member 'get' in something not a structure or union
?
? ?EEPROM.get(VFO_B_MODE, x);
?
? ? ? ? ?^
?
sketch\Ubix 5.1.c:612:10: error: request for member 'get' in something not a structure or union
?
? ? EEPROM.get(CW_KEY_TYPE, x);
?
? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'initPorts':
?
sketch\Ubix 5.1.c:629:3: warning: implicit declaration of function 'analogReference' [-Wimplicit-function-declaration]
?
? ?analogReference(DEFAULT);
?
? ?^
?
sketch\Ubix 5.1.c:629:19: error: 'DEFAULT' undeclared (first use in this function)
?
? ?analogReference(DEFAULT);
?
? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:632:3: warning: implicit declaration of function 'pinMode' [-Wimplicit-function-declaration]
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ?^
?
sketch\Ubix 5.1.c:75:16: error: 'A0' undeclared (first use in this function)
?
?#define ENC_A (A0)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:632:11: note: in expansion of macro 'ENC_A'
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:632:18: error: 'INPUT_PULLUP' undeclared (first use in this function)
?
? ?pinMode(ENC_A, INPUT_PULLUP);
?
? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:76:16: error: 'A1' undeclared (first use in this function)
?
?#define ENC_B (A1)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:633:11: note: in expansion of macro 'ENC_B'
?
? ?pinMode(ENC_B, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:77:18: error: 'A2' undeclared (first use in this function)
?
?#define FBUTTON (A2)
?
? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:634:11: note: in expansion of macro 'FBUTTON'
?
? ?pinMode(FBUTTON, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:78:16: error: 'A3' undeclared (first use in this function)
?
?#define PTT? ?(A3)
?
? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c:640:11: note: in expansion of macro 'PTT'
?
? ?pinMode(PTT, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:79:23: error: 'A6' undeclared (first use in this function)
?
?#define ANALOG_KEYER (A6)
?
? ? ? ? ? ? ? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:641:11: note: in expansion of macro 'ANALOG_KEYER'
?
? ?pinMode(ANALOG_KEYER, INPUT_PULLUP);
?
? ? ? ? ? ?^
?
sketch\Ubix 5.1.c:643:20: error: 'OUTPUT' undeclared (first use in this function)
?
? ?pinMode(CW_TONE, OUTPUT);
?
? ? ? ? ? ? ? ? ? ? ^
?
sketch\Ubix 5.1.c: In function 'setup':
?
sketch\Ubix 5.1.c:662:3: error: 'Serial' undeclared (first use in this function)
?
? ?Serial.begin(38400);
?
? ?^
?
sketch\Ubix 5.1.c:665:3: error: 'lcd' undeclared (first use in this function)
?
? ?lcd.begin(16, 2);
?
? ?^
?
sketch\Ubix 5.1.c:669:3: warning: implicit declaration of function 'printLine2' [-Wimplicit-function-declaration]
?
? ?printLine2("uBITX v5.1");
?
? ?^
?
sketch\Ubix 5.1.c:675:3: warning: implicit declaration of function 'initOscillators' [-Wimplicit-function-declaration]
?
? ?initOscillators();
?
? ?^
?
sketch\Ubix 5.1.c:682:5: warning: implicit declaration of function 'factory_alignment' [-Wimplicit-function-declaration]
?
? ? ?factory_alignment();
?
? ? ?^
?
sketch\Ubix 5.1.c: At top level:
?
sketch\Ubix 5.1.c:690:1: error: unknown type name 'byte'
?
?byte flasher = 0;
?
?^
?
sketch\Ubix 5.1.c: In function 'loop':
?
sketch\Ubix 5.1.c:693:3: warning: implicit declaration of function 'cwKeyer' [-Wimplicit-function-declaration]
?
? ?cwKeyer();
?
? ?^
?
sketch\Ubix 5.1.c:707:3: warning: implicit declaration of function 'checkCAT' [-Wimplicit-function-declaration]
?
? ?checkCAT();
?
? ?^
?
sketch\Ubix 5.1.c:231:10: note: previous declaration of 'checkCAT' was here
?
? ? ?void checkCAT(int);
?
? ? ? ? ? ^
?
sketch\Ubix 5.1.c:707:3: error: incompatible implicit declaration of function 'checkCAT'
?
? ?checkCAT();
?
? ?^
?
sketch\Ubix 5.1.c:231:10: note: previous implicit declaration of 'checkCAT' was here
?
? ? ?void checkCAT(int);
?
? ? ? ? ? ^
?
Multiple libraries were found for "Wire.h"
?Used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire
?Not used: C:\Users\Tom\Documents\Arduino\libraries\Wire
exit status 1
Error compiling for board Arduino/Genuino Uno.
?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
?
--
W0KFL / Tom Raber