sim900 library - problems with the arduino mega

Hi all

I'm using the arduino mega with a sim900 device (specifically this device here: linksprite)

I've modified the library so that it's using the mega's Serial ports and it works fine as long as SoftwareSerial is still included (which it shouldn't need?). When I comment it out I get these errors:

In file included from C:\Program Files (x86)\Arduino\libraries\GSMSHIELD_TDG/GSM.h:9,
                 from C:\Program Files (x86)\Arduino\libraries\GSMSHIELD_TDG/SIM900.h:5,
                 from GSM_GPRSLibrary_SMS.ino:1:
C:\Program Files (x86)\Arduino\libraries\GSMSHIELD_TDG/WideTextFinder.h:11: error: ISO C++ forbids declaration of 'SoftwareSerial' with no type
C:\Program Files (x86)\Arduino\libraries\GSMSHIELD_TDG/WideTextFinder.h:11: error: expected ';' before '*' token
C:\Program Files (x86)\Arduino\libraries\GSMSHIELD_TDG/WideTextFinder.h:22: error: expected `)' before '&' token

I know this has been raised before here: Troubles with SoftwareSerial and the mega2560 - Programming Questions - Arduino Forum but I don't think an answer was found.

Anyone got any ideas?

Thanks

which it shouldn't need?

Well, clearly it does.

I've modified the library so that it's using the mega's Serial ports

Clearly not completely.

Well, yes but it shouldn't if the library is properly configured.

sbaratheon:
Well, yes but it shouldn't if the library is properly configured.

I don't know what you mean by "properly configured". I don't know what changes you made to the library. Therefore, I can't help you.

Well, I just used #define mega on line 5 here: GSM-GPRS-GPS-Shield/GSM.h at GSMSHIELD · MarcoMartines/GSM-GPRS-GPS-Shield · GitHub

sbaratheon:
Well, I just used #define mega on line 5 here: GSM-GPRS-GPS-Shield/GSM.h at GSMSHIELD · MarcoMartines/GSM-GPRS-GPS-Shield · GitHub

Did you comment out the #define UNO on line 4?

Yes.

The unit is working fine using hardware serial but I don't understand why it won't compile without softwareserial. I think there may be some kind of bug with the library.

The error message is in my OP.

The actual code is a huge number of .cpp and .h files as a library so hard to post really.

The include and declarations are in WideTextFinder.h.