SParkfun GPS Breakout -XA1110 QWIC

Installed example libraries and try to compile for Adafruit Feather of Sparkfun Thing Plus-- it bombed. See below ,please adivise.

regards,

Tom

C:\Program Files (x86)\Arduino\libraries\SparkFun_I2C_GPS_Arduino_Library-master\src\SparkFun_I2C_GPS_Arduino_Library.cpp: In member function ‘String I2CGPS::createPGCMDpacket(uint16_t, String)’:

C:\Program Files (x86)\Arduino\libraries\SparkFun_I2C_GPS_Arduino_Library-master\src\SparkFun_I2C_GPS_Arduino_Library.cpp:338:41: error: ‘to_string’ was not declared in this scope

configSentence += to_string(packetType);

^

exit status 1

Error compiling for board Adafruit ESP32 Feather.

I’m seeing the same thing!

You might try filing an [issue on the [github page for the library, that should get the attention of the libraries author that something is amiss.](GitHub - sparkfun/SparkFun_I2C_GPS_Arduino_Library: Library for reading and controlling MT3333 and MT3339 based GPS modules over I2C.)](Issues · sparkfun/SparkFun_I2C_GPS_Arduino_Library · GitHub)

Hi,

Thanks for posting. One of our technical support reps filed an internal issue. Looking at the commit history, it looks like there was an [update to include MBED. The function to_string() seems exclusive to MBED. Adding a preprocessor define to wrap it with the String() function when using it with Arduino seems to fix the compile issue.

It looks like you are using the “Adafruit ESP32 Feather” from your compile error. I selected the following boards and it seems to compile for all three architectures:

  • Arduino Uno with the ATmega328P

  • SparkFun ESP32 Thing

  • Adafruit ESP32 Feather

  • SparkFun ESP8266 Thing Dev

  • Adafruit Feather HUZZAH ESP8266
  • The [latest commits have been pushed. Try using the v1.0.4 in [about an hour when the the Arduino library manager crawler runs through the repo. :D](Library Manager FAQ · arduino/Arduino Wiki · GitHub)](GitHub - sparkfun/SparkFun_I2C_GPS_Arduino_Library: Library for reading and controlling MT3333 and MT3339 based GPS modules over I2C.)](Merge pull request #6 from idea--list/master · sparkfun/SparkFun_I2C_GPS_Arduino_Library@9109513 · GitHub)