Error - prog_uint8_t Does not name a type

I’m trying to compile some code which seems to be erroring out due to a deprecated attribute on a type. I’m trying to use the prog_uint8_t type.

The error is:

In file included from C:\Users\Usernaame\Documents\Arduino\openpipe-breakout-master\openpipe_breakout_echanter\openpipe_breakout_echanter.ino:41:0:

samples.h:17: error: 'prog_uint8_t' does not name a type

I added

#define PROG_TYPES_COMPAT

just before

#include <samples.h>

but that did not help.

I also changed all references to ‘prog_uint8_t’ with ‘uint8_t’ but that gave me the following errors:

samples.h:104: error: variable 'instrument_SACKPIPA_note_75' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

The above changes were based on the following advice: http://mutable-instruments.net/forum/discussion/2657/solved-error-prog_uint8_t-does-not-name-a-type/p1

I’ve attached the Python code which generates the “samples.h” file as well as a screenshot of the error, in case that helps.

Any help would be much appreciated! Thank you all very much!

Looks like I can't attach the Python code, so here's a link:

https://dl.dropboxusercontent.com/u/104570198/samples.py

Thanks a million!!

If const uint8_t PROGMEM doesn't work in place of the deprecated type then post the Arduino code that caused the error.

The other option is to go back to version 1.0.6 or earlier where that type works if it is in a library you don't want to mess with or something.

Thank you very much, Delta_G! Using your advice, I was able to solve the issue by changing the code to:

const uint8_t instrument_SACKPIPA_note_68 PROGMEM = {...}