Home Forums Sparkfun MP3 Shield Library Support Forum compile error: variable ‘bitrate_table’ must be const Reply To: compile error: variable ‘bitrate_table’ must be const


Hi there –

I’m new to some of this stuff, so you’ll have to excuse my ignorance.

I’m trying to run the MP3Shield_Library_Demo, now using Arduino IDE 1.6.7.

I replaced

“PROGMEM uint16_t bitrate_table[15][6] = {”

“static const uint16_t bitrate_table[15][6] PROGMEM = {”

in the SFEMP3Shield.cpp..


But now I get these errors:

../Arduino/libraries/SFEMP3Shield/SFEMP3Shield.cpp: In member function ‘uint8_t SFEMP3Shield::vs_init()’:

../Arduino/libraries/SFEMP3Shield/SFEMP3Shield.cpp:293:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

if(VSLoadUserCode(“patches.053”)) return 6;


Any suggestions?