Hey!I need help regarding some programming structure

Hope so you all are doing good.
I am getting an error while uploading this line in project code
#include "Arduino.c"
Error
“No such file or directory exist”
please i need urgent assist if anybody can help me out in this regard,i will be very thankful to all of you for this favour.

Have you tried :#include "Arduino.h"instead ?

Why are you trying to include that file ?

"No such file or directory exist"

Says it all. Do you have the file on the PC ?

Where did you get the code from ?

Deva_Rishi:
Have you tried :#include "Arduino.h"instead ?

I have tried this but not working

UKHeliBob:
Why are you trying to include that file ?
Says it all. Do you have the file on the PC ?

Where did you get the code from ?

No i have no such file in my PC.
Don't know what to do with this error.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled “How to use this Forum”.
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

We need to see your code please.
What model Arduino controller?

What OS and what version IDE?

Have you tried compiling your code without the #include “Arduino.c” ?

Thanks… Tom… :slight_smile:

attiq109:
please i need urgent assist if anybody can help me out in this regard,i will be very thankful to all of you for this favour.

It's going to be difficult to help until you post the program that gives rise to the error.

...R

No i have no such file in my PC.

Which is exactly what the compiler is telling you

I repeat, where did you get the code ?

Please follow the advice on posting a programming question given in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here

For a library file not in the same directory as the sketch use

#include <Arduino.h>

for an included file alongside your sketch you’d use

#include "foo.h"

The difference between <> and “” is the order and locations of the directories scanned for include files.
“” starts in the current directory, <> starts with the library directories.

This matters if there’s a name clash between files.