When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here using code tags.
After downloading the LoRa library, and removing the extraneous A from your sketch, I got:
Sketch uses 3618 bytes (11%) of program storage space. Maximum is 30720 bytes.
Global variables use 295 bytes (14%) of dynamic memory, leaving 1753 bytes for local variables. Maximum is 2048 bytes.
when compiling your sketch. Since you didn't mention which Arduino you compiled for, I won't, either.
Arduino: 1.8.2 (Windows 10), Board: "Intel® Galileo Gen2"
In file included from C:\Users\hladik\Desktop\arduino-1.8.2\LoRaReceiver\LoRaReceiver.ino:2:0:
C:\Users\hladik\Documents\Arduino\libraries\LoRa\src/LoRa.h:74:3: error: 'SPISettings' does not name a type
exit status 1
Fehler beim Kompilieren für das Board Intel® Galileo Gen2.
As already mentioned I have this error only when I'm trying to compile it for a IntelGalileo Gen2, on a Mega 2650 it works fine.
But I already found the Reason.
When you are compiling for a Intel Galileo it uses a different SPI.h, that is made for the Galileo Gen2.
Problem with this SPI.h version is, that the function SPISettings is missing.