View Single Post
Old 09-02-2022, 01:08 AM   #11
timurrrr
Senior Member
 
timurrrr's Avatar
 
Join Date: May 2019
Drives: 2022 GR86
Location: Between Sonoma and Laguna Seca
Posts: 1,712
Thanks: 2,133
Thanked 1,304 Times in 720 Posts
Mentioned: 30 Post(s)
Tagged: 1 Thread(s)
Quote:
Originally Posted by bfitzy View Post
Before I buy the parts, I wanted to make sure I could get your program to compile on my Arduino UNO as a test, but ran into a snag with a library inclusion.
[...]
fatal error: algorithm: No such file or directory
#include <algorithm>
^~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Uno.

Any ideas what I'm missing here? Orignally I thought maybe I needed to update g++ but seems like I'm running the newest compiler.
You won't be able to compile this project for an UNO, as that is a very basic board that doesn't have all the necessary hardware (e.g. BLE).
Apparently, they didn't even bother providing the standard C++ <algorithm> header that has a lot of helpful utils

I suggest you get an nRF-based board to play with, they aren't that expensive.
__________________
Follow the build thread for my GR86!
timurrrr is offline   Reply With Quote