Compile Error on GSM Send SMS sample

Good day, I am currently doing a test run on my GPRS/GSM Shield and Galileo Gen 2 board. I tried to compile the sample code provided but it ends in error. I will not be posting the code since you can already see it in the samples.

Here are the error messages that I get

C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3ShieldV1BaseProvider.h:39:32: error: expected identifier before numeric constant

C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3ShieldV1BaseProvider.h:39:32: error: expected ‘}’ before numeric constant

C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3ShieldV1BaseProvider.h:39:32: error: expected unqualified-id before numeric constant

C:\Program Files (x86)\Arduino\libraries\GSM\src/GSM3ShieldV1BaseProvider.h:42:93: error: expected declaration before ‘}’ token

Using library GSM at version 1.0.5 in folder: C:\Program Files (x86)\Arduino\libraries\GSM
exit status 1
Error compiling.

Any help will be appreciated. Thanks

It compiles fine for me for Arduino Uno.

I don’t see a choice for Galileo Gen2 as one of the board choices for my IDE.

EDIT:

I installed the Board Manager for Galileo Gen2.

And when I try to compile the sketch, guess what error message I see
WARNING: library GSM claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [i586] architecture(s).

Did you not see that?

nope i didn't saw that error.

"I need to read an SMS from GSM module 800A but I can't. Because of this error. Can you please help me?

Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno"

In file included from .\Arduino\libraries\GSM\src/GSM.h:46:0,

from C:\Users\SHEIKH~1\AppData\Local\Temp\arduino_modified_sketch_67337\ReceiveSMS.ino:21:

.\Arduino\libraries\GSM\src/GSM3ShieldV1BandManagement.h:49:1: warning: 'typedef' was ignored in this declaration

typedef enum GSM3GSMBand {UNDEFINED, EGSM_MODE, DCS_MODE, PCS_MODE, EGSM_DCS_MODE, GSM850_PCS_MODE, GSM850_EGSM_DCS_PCS_MODE};

^~~~~~~

Sketch uses 13114 bytes (40%) of program storage space. Maximum is 32256 bytes.
Global variables use 990 bytes (48%) of dynamic memory, leaving 1058 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb0
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb8
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

normanster11:
nope i didn't saw that error.