Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error #1

Open
hjw0012 opened this issue Apr 15, 2024 · 1 comment
Open

Fatal Error #1

hjw0012 opened this issue Apr 15, 2024 · 1 comment

Comments

@hjw0012
Copy link

hjw0012 commented Apr 15, 2024

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
Copy link
Member

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 CIRCUITSTATE/CSE_ModbusRTU#2.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants