using Arduino IDE V 2.3.5 ESP32 core 3.2.0 downloaded latest https://github.com/HelTecAutomation/Heltec_ESP32
attempting to compile File>Examples>Heltek ESP32 Dev-Boards>LoraWAN>LoraWan gives
c:\Users\bb\Documents\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c:9:10: error: #include expects "FILENAME" or <FILENAME>
9 | #include “Arduino.h”
| ^
c:\Users\bb\Documents\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c: In function ‘sx126xSleep’:
c:\Users\bb\Documents\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c:250:5: error: implicit declaration of function ‘delay’; did you mean ‘Delay’? [-Wimplicit-function-declaration]
250 | delay( 2 );
| ^~~~~
| Delay
c:\Users\bb\Documents\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx1262-board.c:34:45: error: stray ‘\342’ in program
34 | extern void lora_printf(const char *format, <U+2026>);
| ^~~~~~~~
c:\Users\bb\Documents\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx1262-board.c:34:46: error: expected declaration specifiers or ‘…’ before ‘)’ token
34 | extern void lora_printf(const char *format, …);
until I downloaded the latest library this was compiling, linking and running OK
EDIT:
edited sx126x.c line 9 replaced “ with ", i.e. #include “Arduino.h“
edited sx1262-board.c retyped … in line 34 extern void lora_printf(const char *format, …);
now compiles links and runs