arduino-libraries / MKRGSM

GNU Lesser General Public License v2.1
54 stars 51 forks source link

"`'Uart' does not name a type`" compilation error #160

Open droidalfa opened 1 year ago

droidalfa commented 1 year ago
In file included from C:\Users\Coder\Documents\Arduino\libraries\MKRGSM\src/GSMVoiceCall.h:23:0,
                 from C:\Users\Coder\Documents\Arduino\libraries\MKRGSM\src/MKRGSM.h:24,
                 from C:\Users\Coder\AppData\Local\Temp\.arduinoIDE-unsaved202305-6004-j71uzu.o7tr\sketch_jan5a\sketch_jan5a.ino:18:
C:\Users\Coder\Documents\Arduino\libraries\MKRGSM\src/Modem.h:35:18: error: expected ')' before '&' token
   ModemClass(Uart& uart, unsigned long baud, int resetPin, int dtrPin);
                  ^
C:\Users\Coder\Documents\Arduino\libraries\MKRGSM\src/Modem.h:71:3: error: 'Uart' does not name a type; did you mean 'sqrt'?
   Uart* _uart;
   ^~~~
   sqrt
per1234 commented 1 year ago

Hi @droidalfa. Thanks for taking the time to submit an issue.

Please tell me which board you have selected from the Tools > Board menu in Arduino IDE when you get this error message.