"Compile Error" with "Sendsms"-sample sketch

Hi,

I tried to verify the "SendSMS"-sample sketch (Arduino nightly from March 28,2014) but the compilation is stopped with "Error compiling" and the information ( I have no GSMshield connected - but I guess for verification only this does not matter...):

C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemVerification.cpp: In member function 'String GSM3ShieldV1ModemVerification::getIMEI()':
C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemVerification.cpp:72: error: conversion from 'int' to 'String' is ambiguous
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/WString.h:61: note: candidates are: String::String(const __FlashStringHelper*)
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/WString.h:59: note: String::String(const char*)

Can you help to solve this problem?

Thanks in advance!

It would help if you posted the code here to avoid everyone having to go an look for it, wherever it is.

I compiled the SendSMS sketch that comes with the 1.0.5 IDE. I get:

Binary sketch size: 15,124 bytes (of a 30,720 byte maximum)

Ok,

That's the sketch:

/*
SMS sender

This sketch, for the Arduino GSM shield,sends an SMS message
you enter in the serial monitor. Connect your Arduino with the
GSM shield and SIM card, open the serial monitor, and wait for
the "READY" message to appear in the monitor. Next, type a
message to send and press "return". Make sure the serial
monitor is set to send a newline when you press return.

Circuit:
* GSM shield
* SIM card that can send SMS

created 25 Feb 2012
by Tom Igoe

This example is in the public domain.

http://arduino.cc/en/Tutorial/GSMExamplesSendSMS

*/
// Include the GSM library
#include <GSM.h>
#define PINNUMBER ""
// initialize the library instance
GSM gsmAccess;
GSM_SMS sms;
void setup()
{
** // initialize serial communications and wait for port to open:**
** Serial.begin(9600);**
** while (!Serial) {**
** ; // wait for serial port to connect. Needed for Leonardo only**
** }**

** Serial.println("SMS Messages Sender");**
** // connection state**
** boolean notConnected = true;**
** // Start GSM shield**
** // If your SIM has PIN, pass it as a parameter of begin() in quotes**
** while(notConnected)**
** {**
** if(gsmAccess.begin(PINNUMBER)==GSM_READY)**
** notConnected = false;**
** else**
** {**
** Serial.println("Not connected");**
** delay(1000);**
** }**
** }**

** Serial.println("GSM initialized");**
}
void loop()
{
** Serial.print("Enter a mobile number: ");**
** char remoteNum[20]; // telephone number to send sms**
** readSerial(remoteNum);**
** Serial.println(remoteNum);**

** // sms text**
** Serial.print("Now, enter SMS content: ");**
** char txtMsg[200];**
** readSerial(txtMsg);**
** Serial.println("SENDING");**
** Serial.println();**
** Serial.println("Message:");**
** Serial.println(txtMsg);**

** // send the message**
** sms.beginSMS(remoteNum);**
** sms.print(txtMsg);**
** sms.endSMS();**
** Serial.println("\nCOMPLETE!\n");**
}
/*
** Read input serial**
*/
int readSerial(char result[])
{
** int i = 0;**
** while(1)**
** {**
** while (Serial.available() > 0)**
** {**
** char inChar = Serial.read();**
** if (inChar == '\n')**
** {**
__ result = '\0';__
* Serial.flush();*
* return 0;*
* }*
* if(inChar!='\r')*
* {*
_ result = inChar;
* i++;
}
}
}
}[/b]
(as the story is too long and I exceeded the max.message length, I post the Error in the next post)*_

And these are the error messages (I used "copy error messages" from the IDE)

Arduino: nightly (Windows 7), Board: "Arduino Uno"
Using library GSM in folder: C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM (legacy)
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\SendSMS.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\SendSMS.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3CircularBuffer.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3CircularBuffer.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileAccessProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileAccessProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileCellManagement.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileCellManagement.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileClientProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileClientProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileClientService.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileClientService.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileDataNetworkProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileDataNetworkProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileMockupProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileMockupProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileNetworkProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileNetworkProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileNetworkRegistry.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileNetworkRegistry.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileServerProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileServerProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileServerService.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileServerService.cpp.o
to be continued...

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileSMSProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileSMSProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3MobileVoiceProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3MobileVoiceProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1AccessProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1AccessProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1BandManagement.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1BandManagement.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1BaseProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1BaseProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1CellManagement.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1CellManagement.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ClientProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1ClientProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1DataNetworkProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1DataNetworkProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1DirectModemProvider.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1DirectModemProvider.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemCore.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1ModemCore.cpp.o
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\utility C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemVerification.cpp -o C:\Users\Hans\AppData\Local\Temp\build3007818881054503433.tmp\GSM\GSM3ShieldV1ModemVerification.cpp.o
C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemVerification.cpp: In member function 'String GSM3ShieldV1ModemVerification::getIMEI()':
C:\Program Files\Arduino\hardware\arduino\avr\libraries\GSM\GSM3ShieldV1ModemVerification.cpp:72: error: conversion from 'int' to 'String' is ambiguous
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/WString.h:61: note: candidates are: String::String(const __FlashStringHelper*)
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/WString.h:59: note: String::String(const char*)

More I cannot provide....(except : if I verify with a Mega-Board the same error occurs...)

The whole GSM class is riddled with crap like this:

GSM3ShieldV1ModemVerification.cpp

String GSM3ShieldV1ModemVerification::getIMEI()
{
	String number;
	// AT command for obtain IMEI
	String modemResponse = modemAccess.writeModemCommand("AT+GSN", 2000);
	// Parse and check response
	char res_to_compare[modemResponse.length()];
	modemResponse.toCharArray(res_to_compare, modemResponse.length());
	if(strstr(res_to_compare,"OK") == NULL)
	{	
		return NULL;

There is no excuse for using the String class at all. There is no way to convert a NULL to a String.

Ok,

obviously you found a reason (or better "the" reason) - so what to do????

so what to do????

I can assure you that the extra punctuation does not help.

There is a web site where you can record issues with the examples and libraries that come with the Arduino, although where that is I don't recall.

Report the problem, and I'm confident that it will be fixed soon. As long as your willing to stretch (and I mean really stretch) the definition of soon.

Meanwhile, you can replace the stupid

return NULL;

statement in the library file with

return "Stupidity reigns supreme";

(or something like that. :))

Hi,

I'm new and I understand there is nothing here you can ask that way, but... it's a strange you get a library released which won't even compile.

I did replace <return NULL;> with <return "";> in a couple of GSM library files (i.e. GSM3ShieldV1ScanNetworks.cpp & GSM3ShieldV1ModemVerification.cpp).

Now it compiles... hope it works as well? :slight_smile:

Cabbi