Pages: 1 [2]   Go Down
Author Topic: WProgram.h: No such file or directory  (Read 21019 times)
0 Members and 3 Guests are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like the OP did not read or understand your reply, and decided to start a new thread in the hope that would help.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24462
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

"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.

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24462
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm sorry, I'm on my tablet now, and don't have access to the source I had earlier.
Logged

"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.

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok.thanks.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24462
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, Difficult to see, but "WProgram.h" should be <WProgram.h>
Logged

"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.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Edison Member
*
Karma: 29
Posts: 2048
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Brasil
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: 1 [2]   Go Up
Jump to: