Show Posts
Pages: [1]
1  Community / Gigs and Collaborations / Re: Compile errors in gsm-shield-arduino on: January 08, 2013, 06:34:08 am
I have found solution.
I am using arduino ide in 1.0.3 version (installed on my fedora by "yum install arduino"), but found that there is 1.5 version - but still beta.
In 1.5 there is one fix to F() function which I applied in my 1.0.3, which is one line in WString.h that needs to be changed:
Code:
#define F(string_literal) (reinterpret_cast<__FlashStringHelper *>(PSTR(string_literal)))
to
Code:
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
2  Community / Gigs and Collaborations / Compile errors in gsm-shield-arduino on: January 08, 2013, 04:38:52 am
Hi, I have just installed arduino ide and added gsm-sheild-arduino ( http://code.google.com/p/gsm-shield-arduino/ ) library to it. But when I try to verify any of the examples from GSMSHIELD I get following errors. Am I doing sth wrong? I don't have problems with other examples.
Code:
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'char SIMCOM900::forceON()':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:19:16: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::configandwait(char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:55:19: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:67:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:70:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::readCellData(int&, int&, long int&, long int&)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:111:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:112:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:128:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'boolean SIMCOM900::readSMS(char*, int, char*, int)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:147:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:204:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::setPIN(char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:267:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::changeNSIPmode(char)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:287:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::getCCI(char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:306:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'int SIMCOM900::getIMEI(char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:331:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'byte GSM::CheckRegistration()':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:469:17: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'char GSM::GetPhoneNumber(byte, char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:748:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'char GSM::WritePhoneNumber(byte, char*)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:822:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:824:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:826:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp: In member function 'char GSM::DelPhoneNumber(byte)':
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:878:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
/usr/share/arduino/libraries/GSMSHIELD/SIM900.cpp:880:15: error: reinterpret_cast from type 'const char*' to type '__FlashStringHelper*' casts away qualifiers
Pages: [1]