Go Down

Topic: WProgram.h: No such file or directory (Read 34426 times) previous topic - next topic

Nick Gammon

Looks like the OP did not read or understand your reply, and decided to start a new thread in the hope that would help.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

salim_yilmaz

i tried to change WProgram.h to Arduino.h but i still get a error. i dont know, What else I need to change?

AWOL

Nothing. In reply #8, I downloaded the library, did the changes, and recompiled the example.
Did you save the files when you made the changes?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

salim_yilmaz

awol i tried reply #8 probably max6675.h have a error.Can you try to max6675.h

AWOL

I'm sorry, I'm on my tablet now, and don't have access to the source I had earlier.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


AWOL

OK, Difficult to see, but "WProgram.h" should be <WProgram.h>
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Nick Gammon

I downloaded the three files you linked.

I copied the library files into my "libraries" folder and restarted the IDE.

I removed the #include <WProgram.h> from inside MAX6675.cpp.

I changed #include <WProgram.h> to #include <Arduino.h> inside MAX6675.h

Your example sketch compiled without errors.

Now, your turn.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon


awol i tried reply #8 probably max6675.h have a error.Can you try to max6675.h


What do you mean it "probably" had an error?

Read this before posting a programming question


Post your errors. Copy and paste. Don't say it "probably" had an error.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

salim_yilmaz

i fixed problem.I would like to thank all of you

michinyon

If you READ the error message which you posted,    the bad include statement was in the sketch INO file  and not in the library H or CPP file.

So go to the INO  file  and replace the reference to WProgram.h  with  Arduino.h

Henrique29


You have to go into the .h and .cpp files and change "WProgram.h" to Arduino.h



Thank you, I made the change and it worked fine.

GoForSmoke

Banged my head on this for a while, the zip extracted the library folder with a Read-Only.
The files inside are not read only but because the Folder is Arduino ain't happy.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

Go Up