Loading...
Pages: 1 [2]   Go Down
Author Topic: WProgram.h: No such file or directory  (Read 2960 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 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
Online Online
Brattain Member
*****
Karma: 143
Posts: 19370
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.

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
Online Online
Brattain Member
*****
Karma: 143
Posts: 19370
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.

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

ok.thanks.
Logged

Global Moderator
UK
Online Online
Brattain Member
*****
Karma: 143
Posts: 19370
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.

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 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
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 226
Posts: 14101
Lua rocks!
View Profile
WWW
 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
God Member
*****
Karma: 9
Posts: 839
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

Pages: 1 [2]   Go Up
Print
 
Jump to: