I’m writing some libraries for the Arduino Due which uses vectors of bytes passed to classes defined in header files. It then uses that byte vector as data to send to various peripherals via SPI, so I want to use this technique in order to send arbitrary length data packets.
It’s throwing a warning, but I’m not sure what it means. It’s still compiling, but I like to not have warnings if I can help it, especially since I don’t know what they mean.
(home directory path and file names redacted)
In function `std::vector<unsigned char, std::allocator<unsigned char> >::_M_check_len(unsigned int, char const*) const': /.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/arm-none-eabi/include/c++/4.8.3/bits/stl_vector.h:1339: warning: undefined reference to `std::__throw_length_error(char const*)'
Anyone have any clues? I’m using Arduino 1.6.3, is the library directory wrong? This is on linux, and it’s looking in the ~/.arduino15 library for the stl_vector.h file, is that incorrect perhaps?