CIRCUITSTATE / CSE_GNSS

Arduino library for reading and writing GPS/GNSS receivers with NMEA output.
MIT License
4 stars 0 forks source link

Fatal Error #1

Open hjw0012 opened 5 months ago

hjw0012 commented 5 months ago

I installed the library through the Arduino Library manager. When I try to run either of the examples I get a fatal error. Is there anything else I need to install in order to make it work?

fatal error: vector: No such file or directory

include

      ^~~~~~~~

compilation terminated. exit status 1

vishnumaiea commented 5 months ago

This is a known limitation of the CSE_GNSS library for now. The library uses the C++ standard vector library for data manipulation. If you are compiling the code for any AVR boards, or other platforms that do not have the Vector library support, you will get the compilation error.

As a workaround, you can add the <ArduinoSTL.h> library to your main code. It is an implementation of the vector library for AVRs. This solution was suggested by @pedropiko in https://github.com/CIRCUITSTATE/CSE_ModbusRTU/issues/2.

Please test this and let me know if it is working for you.