Go Down

Topic: w.program.h not found in libarary (Read 112 times) previous topic - next topic

AHETEKU

Arduino: 1.8.5 (Windows 8.1), Board: "Arduino/Genuino Uno"

In file included from C:\Users\STEADF~1\AppData\Local\Temp\arduino_modified_sketch_569081\sketch_jun08c.ino:3:0:

C:\Program Files (x86)\Arduino\libraries\JPEGCamera/JPEGCamera.h:10:22: fatal error: WProgram.h: No such file or directory

 #include "WProgram.h"

                      ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

68tjs

WProgram means Wiring Program

Wiring is IDE that M Banzi forks to create Arduino.
Wiring was released in 2004 and Arduino in 2005.

With Arduino you must use :
#include "Arduino.h"

sterretje

To my knowledge, it actually depends on the IDE. I know that any version above 1.6.6 needs to use Arduino.h, not familiar with earlier versions so not sure where the change happened.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Delta_G

not sure where the change happened.
It started being Arduino.h way back at 1.0 IIRC.
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

68tjs

Wiring released the first his version 1.0. He renamed the WProgram.h file to Wiring.h
Arduino was surprised and a month later arduino urgently released his version 1.0 where he renamed the file WProgram.h to Arduino.h

As Arduino 1.0 was released in a hurry, arduino 1.0 was followed very quickly by 1.0.1, 1.0.2, 1.0.3, 1.0.4.
The first stable version was 1.0.5 followed by 1.0.6 which finally brought the display of line numbers.

Go Up