Library GSM vs SoftwareSerial

Hi All,

I need use GSM and SoftwareSerial together, but I'm getting the error

SoftwareSerial.cpp.o : : In function __vector_3': SoftwareSerial.cpp : multiple definition of __vector_3'
GSM3SoftSerial.cpp.o : :C:\Program Files (x86)\Arduino\libraries\GSM\GSM3SoftSerial.cpp:511: first defined here
SoftwareSerial.cpp.o : : In function __vector_4': SoftwareSerial.cpp : multiple definition of __vector_4'
GSM3SoftSerial.cpp.o : :C:\Program Files (x86)\Arduino\libraries\GSM\GSM3SoftSerial.cpp:518: first defined here
SoftwareSerial.cpp.o : : In function __vector_5': SoftwareSerial.cpp : multiple definition of __vector_5'
GSM3SoftSerial.cpp.o : :C:\Program Files (x86)\Arduino\libraries\GSM\GSM3SoftSerial.cpp:525: first defined here

I'm using the Arduino GSM Shield and the Sparkfun GPS Shield

is There another solution for that?

I guess this is because both the shields are using SPI.

Follow this guide, which explains how you can route multiple shields that use SPI and see if you can make similar modifications. http://www.circuitsathome.com/mcu/running-multiple-slave-devices-on-arduino-spi-bus-hardware-modifications

I need use GSM and SoftwareSerial together

You can't. You might be able to use AltSoftSerial in place of SoftwareSerial in your code.

If not, you need different hardware.

And, the GSM library needs a rewrite.

Thanks man!

I've tried the AltSoftSerial but didn't work.

if someone knows how to change the GSM library.

Thanks!