fatal error: WProgram.h: No such file or directory #include "WProgram.h"

Hi guy.
I try to import C328R library buy when i compile I have some error:

In file included from test1.ino:1:0:
C:\Users\user\Documents\Arduino\libraries\CameraC328R/CameraC328R.h:24:22: fatal error: WProgram.h: No such file or directory
#include "WProgram.h"
^
compilation terminated.
Error compiling.

How to repair it?
thank you

thenamefirst:
fatal error: WProgram.h: No such file or directory
#include "WProgram.h"
^
compilation terminated.
Error compiling.

How to repair it?

If you are using an Arduino IDE version 1.0.0 or higher

#include <Arduino.h>

The include file WProgram.h is for IDE versions BEFORE 1.0.0, such like Arduino 0018, 0019,0020 only.

thank so much man but after i replace to Arduino.h I have now error

fatal error: WConstants.h: No such file or directory
#include "WConstants.h"
^
compilation terminated.
Error compiling.

can you help me repair it ?

thenamefirst:
thank so much man but after i replace to Arduino.h I have now error

fatal error: WConstants.h: No such file or directory
#include "WConstants.h"
^
compilation terminated.
Error compiling.

can you help me repair it ?

If you want to compile 500 year old libraries, you better use an Arduino version (and board) of the same age to do so.

And it would be helpful if you had at least a basic programming knowledge of C/C++.

So what is your Arduino version you are trying to use today?
And is this the 500 year old librarary or what: GitHub - svoisen/c328r: Arduino library for COMedia C328R camera
?

You won't ask me to fix one line of source code after the other, won't you?

sorry for disturb you.
thank you for help me until now.