#Uploading code to the arduino board

5 messages · Page 1 of 1 (latest)

fickle anchor
#

hey, im trying to upload the code to my arduino nano but i keep getting this error message ```C:\Users\eyalb\AppData\Local\Temp.arduinoIDE-unsaved20241016-4160-1qjn4ql.jjly\sketch_nov16a\sketch_nov16a.ino:94:10: fatal error: config.h: No such file or directory
#include "config.h"
^~~~~~~~~~
compilation terminated.
Alternatives for config.h: []
ResolveLibrary(config.h)
-> candidates: []
exit status 1

Compilation error: config.h: No such file or directory```
i get the the file isnt the correct name but even if i change it it doesnt work

upbeat wyvernBOT
#

Hey @fickle anchor, thank you for contributing to this forum.
Please provide as much information (images, video, description) as you can. This will increase the chance that someone can help you with your issue.
Use the Close button when your issue is resolved.

full spindle
#

"config.h":
When the double quotes syntax is used, the folder of the file using the #include directive will be searched for the specified file, then the libraries paths if it was not found in the local path. Use this syntax for header files in the sketch’s folder.
so i'd say it's not the name that is wrong, but the location
IDE compiler cannot handle a directory with . in it, it seems after "." it expects an extension, not a directory.

full spindle
#

i\I also had problems with C headers #include "servo.h" didn't work even if that file was in the same directory as the .ino. untill i found a Servo library and installed that Library in IDE. then i used #include <Servo.h> and that fixed it.