I am brand new to Arduino so apologies that this is probably a very simple issue.
I am pushing my code to arduino (rover car) and it is complaining that it cannot find a the hardwareSerial.h library. I don't know how to get it included in my library. I cannot find it in the library manager. Any help would be appreciated.
Error:
/tmp/600692549/SmartCar_Core_20200904/SmartCar_Core_20200904.ino:841:10: fatal error: hardwareSerial.h: No such file or directory
#include "hardwareSerial.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Why are you trying to include a standard part of the core? hardwareSerial is already included by default. Also you put it in quotes, which means it would have to be in your sketch folder.
Thank you for your responses. The code is actually the code provided by my Elegoo Smart robot 3.0. I purchased it to o with my son, I installed the first lesson (successfully) an then tried to revert back to the fully installed working robot (to confirm that I can always recover). I didn't actually write the code but I attached it here.
I am not a C/C++ expert but did think that the local reference was odd.
My board is an Uno Rev 3 but it all came as part of this kit. Amazon.com
Using quotes should still search the default library folders if not found in the sketch folder. Unfortunately the library file starts with a capital letter, so would not match if the operating system is case-sensitive.