Libraries clash

Hi,

I have a problem using the SoftwareSerial.h and the GSM.h libraries in the same sketch.
Here is the error. Does anyone knows how to solve this??

Thanks!

SoftwareSerial\SoftwareSerial.cpp.o: In function __vector_9': C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\SoftwareSerial/SoftwareSerial.cpp:302: multiple definition of __vector_9'
GSM\GSM3SoftSerial.cpp.o:C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\GSM/GSM3SoftSerial.cpp:511: first defined here
c:/users/david.electron/desktop/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
SoftwareSerial\SoftwareSerial.cpp.o: In function __vector_10': C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\SoftwareSerial/SoftwareSerial.cpp:309: multiple definition of __vector_10'
GSM\GSM3SoftSerial.cpp.o:C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\GSM/GSM3SoftSerial.cpp:518: first defined here
SoftwareSerial\SoftwareSerial.cpp.o: In function __vector_11': C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\SoftwareSerial/SoftwareSerial.cpp:316: multiple definition of __vector_11'
GSM\GSM3SoftSerial.cpp.o:C:\Users\David.ELECTRON\Desktop\arduino-1.0.1\libraries\GSM/GSM3SoftSerial.cpp:525: first defined here

Don't use both libraries at the same time. That's as far as anyone can help you as you haven't posted any code.

Don't use both libraries at the same time.

You are going to find that you can't use both libraries at the same time. And, if you think about it, it makes sense. The SoftwareSerial class, cloned to make GSMSoftwareSerial, can only have one active instance. If you have an instance, and the GSM class has an instance, which is listening? If you think you need a SoftwareSerial instance and a GSM shield, you probably need a device, like the Mega, that has more hardware serial ports.

It looks like you are using a third-party GSM library. Did that come with a third-party GSM shield?

Maybe you can change your code to use the GSM3SoftSerial.cpp in that third-party library rather than the SoftwareSerial library.