# Conflicting Libraries / Multiple Vector Error

**URL:** <https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080>\
**Category:** Programming\
**Created:** [April 18, 2018, 3:16pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080 "2018-04-18T15:16:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![enstrum](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@enstrum](https://forum.arduino.cc/u/enstrum)\
**Post date:** [April 18, 2018, 3:16pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/1 "2018-04-18T15:16:47Z")

</div>

Hello, I am currently working on a simple GPS tracker. Our tracker consists of a GSM Module, GPS Module, and a Pro Trinket. We know the parts work together, however the code does not compile. The libraries (SoftwareSerial and GSM) from the GSM and the GPS conflict, and we get a "multiple vector error". Is there a simple fix?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 18, 2018, 3:34pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/2 "2018-04-18T15:34:39Z")

</div>

> Is there a simple fix?

There is one fix. Get a Mega or Due, and quit using SoftwareSerial.

---

<div class="post-metadata">

**Author:** ![dev\_1](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dev_1/32/215847_2.png) [@dev\_1](https://forum.arduino.cc/u/dev_1)\
**Post date:** [April 18, 2018, 9:23pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/3 "2018-04-18T21:23:27Z")

</div>

If you connect the GPS TX to pin 8 (use AltSoftSerial) and connect the GSM to pins 0 & 1 (use Serial), it _might_ work. You didn't bother to show any code or links to libraries, so that's all I can say.

Like PaulS said, it would be easy to make this work on an Arduino with more than one serial port (Mega, Leo, Micro, Due, Teensy...).

SoftwareSerial is _very_ inefficient, so it's very unlikely that you could make two serial devices work.

Some GSM libraries allow you to edit the H file (header) to select a serial port (e.g., ~~SoftwareSerial~~ or a HardwareSerial port like `Serial`).

---

<div class="post-metadata">

**Author:** ![enstrum](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@enstrum](https://forum.arduino.cc/u/enstrum)\
**Post date:** [April 19, 2018, 12:36am UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/4 "2018-04-19T00:36:18Z")

</div>

What would you do with the RX pin on the GPS?

---

<div class="post-metadata">

**Author:** ![dev\_1](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dev_1/32/215847_2.png) [@dev\_1](https://forum.arduino.cc/u/dev_1)\
**Post date:** [April 19, 2018, 1:22pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/5 "2018-04-19T13:22:53Z")

</div>

> What would you do with the RX pin on the GPS?

If you don't send configuration commands **to** the GPS device, you don't have to connect the GPS RX pin. Some warnings about connecting this pin [here](https://github.com/SlashDevin/NeoGPS/blob/master/extras/doc/Installing.md#3-connect-the-gps-device). You might have a 3.3V GPS device; be careful when connecting an input pin to a 5V Arduino output pin.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 11:08pm UTC](https://forum.arduino.cc/t/conflicting-libraries-multiple-vector-error/521080/6 "2021-05-05T23:08:27Z")

</div>

Closed on May 5, 2021, 11:08pm UTC


