jedidesilva / gsm-shield-arduino

Automatically exported from code.google.com/p/gsm-shield-arduino
0 stars 0 forks source link

Examples don't compile correctly #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download version 1.0 of Arduino IDE
2. Download version r47 (HEAD at this time) of the 1.0 compatible branch 
(http://gsm-shield-arduino.googlecode.com/svn/branches/CompatibleVerIDE10) to 
the libraries folder
3. Open GSM_GPRSLibrary_AT example with the IDE and press verify

What is the expected output? What do you see instead?
Should compile with no errors.
Shows lots of errors:
In file included from GSM_GPRSLibrary_AT.cpp:1:
C:\Data\arduino-1.0\libraries\GSM1/SIM900.h:3:28: error: SoftwareSerial.h: No 
such file or directory
In file included from C:\Data\arduino-1.0\libraries\GSM1/GSM.h:6,
                 from C:\Data\arduino-1.0\libraries\GSM1/SIM900.h:4,
                 from GSM_GPRSLibrary_AT.cpp:1:
C:\Data\arduino-1.0\libraries\GSM1/WideTextFinder.h:11: error: ISO C++ forbids 
declaration of 'SoftwareSerial' with no type
C:\Data\arduino-1.0\libraries\GSM1/WideTextFinder.h:11: error: expected ';' 
before '*' token
C:\Data\arduino-1.0\libraries\GSM1/WideTextFinder.h:22: error: expected `)' 
before '&' token
In file included from C:\Data\arduino-1.0\libraries\GSM1/SIM900.h:4,
                 from GSM_GPRSLibrary_AT.cpp:1:
C:\Data\arduino-1.0\libraries\GSM1/GSM.h:182: error: 'SoftwareSerial' does not 
name a type
In file included from GSM_GPRSLibrary_AT.cpp:2:
C:\Data\arduino-1.0\libraries\GSM_Shield/NewSoftSerial.h:71: error: conflicting 
return type specified for 'virtual void NewSoftSerial::write(uint8_t)'
C:\Data\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   
overriding 'virtual size_t Print::write(uint8_t)'

What version of the product are you using? On what operating system?
Arduino 1.0 on Windows 7 x32

Please provide any additional information below.

Original issue reported on code.google.com by sjfaust...@gmail.com on 10 Dec 2011 at 12:53

GoogleCodeExporter commented 8 years ago
The example sketch GSM_GPRSLibrary_AT uses #include <NewSoftSerial.h> on 1.0 
when it should use #include <SoftwareSerial.h>

Original comment by sjfaust...@gmail.com on 10 Dec 2011 at 1:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you for notice it. And sorry for late. 

Original comment by martines...@gmail.com on 27 Dec 2011 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by dmg...@gmail.com on 21 Jan 2012 at 4:49

GoogleCodeExporter commented 8 years ago
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27