I’m trying to build a scrolling line graph. I figured arrays are the best way to do that. I need to shift the entire contents of the array over to the left one for the graph to scroll. Google says that “valarray” is the best way to do this. As soon as I include valarray in my project, I get a whole bunch of the weirdest compiler errors I’ve ever seen. Referencing directories I didn’t even know existed.
I’m not sure how to copy compiler errors, so I guess I’ll just have to link an image:
To be clear, even though those /usr/local are linux directories, I’m on Windows. As you can see it’s also throwing up errors in other included libraries, errors that I didn’t have before. All because I added the line #include “valarray” into my code. Now I know my understanding of C++ is the programming equivalent of a dog trained how to pilot a space shuttle - I don’t really know what I’m doing, I’m just good at figuring things out by context - but is this even possible on the Photon since it is C++11? Am I doing something wrong, or missing another include perhaps?