Error message compiling DDS sinwave generator

I'm new using Arduino and to programming so my question may look inappropriate, I apologise anticipately for this.
I need to build a Sin Wave generator and I found this code:
http://interface.khm.de/index.php/lab/interfaces-advanced/arduino-dds-sinewave-generator/
Trying to compile it i received a message error:
"sin256 was not declared in the scope"
At this point I changed the instruction: " OCR2A=pgm_read_byte_near(sine256 + icnt); "
to this: " OCR2A=pgm_read_byte_near(prog_uchar sine256 + icnt); "
The errpr desappear bat a new error is saying a ")" was aspected before ";".
I checked but i did not find where.
Anybody can help me?

I need to build a Sin Wave generator and I found this code:

I'm not going looking for it, and most others here aren't either. Post YOUR code, directly if it is short enough, or as an attachment.

Trying to declare that sin256 (or sine256) is a new variable does NOT make sense. Clearly, the function is trying to read data at some offset FROM A POOL OF EXISTING DATA.

here in the attachment the code I found.

sketch.txt (4.63 KB)

Laoan:
here in the attachment the code I found.

When I compile that code, I get one "error":

Binary sketch size: 5,056 bytes (of a 30,720 byte maximum)

Most people are happy enough to ignore that "error".

You compile that code, and post the EXACT error message(s) that you see. Copy and paste. Do NOT summarize. Do not omit any data.

Arduino: 1.7.2 (Windows 7), Board: "Arduino Duemilanove or Diecimila, ATmega328"

sketch_may12a.ino:15:10: error: 'prog_uchar' does not name a type

In file included from sketch_may12a.ino:12:0:

sketch_may12a.ino: In function 'void __vector_9()':

sketch_may12a.ino:113:28: error: 'sine256' was not declared in this scope

Error compiling.

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

Or like that, following the setting: "show verbose":

Arduino: 1.7.2 (Windows 7), Board: "Arduino Duemilanove or Diecimila, ATmega328"

Build options changed, rebuilding all

C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10702 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard C:\Users\Laoan\AppData\Local\Temp\build3655317049200911126.tmp\sketch_may12a.cpp -o C:\Users\Laoan\AppData\Local\Temp\build3655317049200911126.tmp\sketch_may12a.cpp.o

sketch_may12a.ino:15:10: error: 'prog_uchar' does not name a type

In file included from sketch_may12a.ino:12:0:

sketch_may12a.ino: In function 'void __vector_9()':

sketch_may12a.ino:113:28: error: 'sine256' was not declared in this scope

Error compiling.

Why not spend $10 and buy an AD9850 module, write write a few lines of code, and get a decent sine wave:

So, since you having so many problems using versions of the IDE that are being cranked out so fast that the bugs don't have time to die, it would make sense to use a stable, functioning, version. 1.0.5!

If you want more than 10 bit DAC and are only interested in audio frequencies, those
nice RF DDS chips aren't the best option. Doing the DDS in software and driving
an external 16bit DAC would win. And be less than $10 probably. Though there is
the issue of jitter to worry about.