In 1.0.5 r2: ComboOrgan:20: error: expected constructor, destructor, or type conversion before ';' token ComboOrgan.ino: In function 'void setup()': ComboOrgan:302: error: 'MIDI' was not declared in this scope ComboOrgan:304: error: 'MIDI_CHANNEL_OMNI' was not declared in this scope ComboOrgan.ino: In function 'void loop()': ComboOrgan:308: error: 'MIDI' was not declared in this scope In 1.0.6: This report would have more information with "Show verbose output during compilation" enabled in File > Preferences. Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno" ComboOrgan:20: error: expected constructor, destructor, or type conversion before ';' token ComboOrgan.ino: In function 'void setup()': ComboOrgan:302: error: 'MIDI' was not declared in this scope ComboOrgan:304: error: 'MIDI_CHANNEL_OMNI' was not declared in this scope ComboOrgan.ino: In function 'void loop()': ComboOrgan:308: error: 'MIDI' was not declared in this scope In 1.8.1: Arduino: 1.8.1 (Windows 7), Board: "Arduino/Genuino Uno" ComboOrgan:63: error: 'prog_int16_t' does not name a type prog_int16_t *sampleArray[NUM_OF_GENERATORS] ; ^ In file included from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0, from sketch\ComboOrgan.ino.cpp:1: E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino: In function 'void __vector_11()': ComboOrgan:126: error: 'sampleArray' was not declared in this scope samValue = pgm_read_word_near(sampleArray[I] + index[I]) ; \ ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:140:3: note: in expansion of macro 'GENERATE' GENERATE(0) ; ^ ComboOrgan:126: error: 'sampleArray' was not declared in this scope samValue = pgm_read_word_near(sampleArray[I] + index[I]) ; \ ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:141:3: note: in expansion of macro 'GENERATE' GENERATE(1) ; ^ ComboOrgan:126: error: 'sampleArray' was not declared in this scope samValue = pgm_read_word_near(sampleArray[I] + index[I]) ; \ ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:142:3: note: in expansion of macro 'GENERATE' GENERATE(2) ; ^ ComboOrgan:126: error: 'sampleArray' was not declared in this scope samValue = pgm_read_word_near(sampleArray[I] + index[I]) ; \ ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:143:3: note: in expansion of macro 'GENERATE' GENERATE(3) ; ^ ComboOrgan:126: error: 'sampleArray' was not declared in this scope samValue = pgm_read_word_near(sampleArray[I] + index[I]) ; \ ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:144:3: note: in expansion of macro 'GENERATE' GENERATE(4) ; ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino: In function 'void ConfigGenerator(int, int)': ComboOrgan:177: error: 'sampleArray' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:177: error: 'prog_int16_t' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:177: error: expected primary-expression before ')' token sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:180: error: 'sampleArray' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ ComboOrgan:180: error: 'prog_int16_t' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ ComboOrgan:180: error: expected primary-expression before ')' token sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino: At global scope: E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:187:24: warning: unused parameter 'channel' [-Wunused-parameter] void handleNoteOn(byte channel, byte note, byte velocity) { ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:187:49: warning: unused parameter 'velocity' [-Wunused-parameter] void handleNoteOn(byte channel, byte note, byte velocity) { ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:227:25: warning: unused parameter 'channel' [-Wunused-parameter] void handleNoteOff(byte channel, byte note, byte velocity) { ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:227:50: warning: unused parameter 'velocity' [-Wunused-parameter] void handleNoteOff(byte channel, byte note, byte velocity) { ^ E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino: In function 'void setup()': ComboOrgan:286: error: 'sampleArray' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:286: error: 'prog_int16_t' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:286: error: expected primary-expression before ')' token sampleArray[i] = (prog_int16_t*)pgm_read_word_near(FarfWaves + key) ; ^ ComboOrgan:289: error: 'sampleArray' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ ComboOrgan:289: error: 'prog_int16_t' was not declared in this scope sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ ComboOrgan:289: error: expected primary-expression before ')' token sampleArray[i] = (prog_int16_t*)pgm_read_word_near(VoxWaves + key) ; ^ In file included from C:\Program Files\Arduino\libraries\MIDI/MIDI.h:224:0, from E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:20: C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp: In instantiation of 'bool midi::MidiInterface::inputFilter(midi::Channel) [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings; midi::Channel = unsigned char]': C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:475:52: required from 'bool midi::MidiInterface::read(midi::Channel) [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings; midi::Channel = unsigned char]' C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:460:30: required from 'bool midi::MidiInterface::read() [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings]' E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:309:13: required from here C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:783:70: warning: unused parameter 'inChannel' [-Wunused-parameter] inline bool MidiInterface::inputFilter(Channel inChannel) ^ In file included from C:\Program Files\Arduino\libraries\MIDI/MIDI.h:224:0, from E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:20: C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp: In instantiation of 'void midi::MidiInterface::thruFilter(midi::Channel) [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings; midi::Channel = unsigned char]': C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:482:25: required from 'bool midi::MidiInterface::read(midi::Channel) [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings; midi::Channel = unsigned char]' C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:460:30: required from 'bool midi::MidiInterface::read() [with SerialPort = HardwareSerial; Settings = midi::DefaultSettings]' E:\My Documents\Arduino_sketches\ComboOrgan\ComboOrgan.ino:309:13: required from here C:\Program Files\Arduino\libraries\MIDI/MIDI.hpp:1114:62: warning: unused parameter 'inChannel' [-Wunused-parameter] void MidiInterface::thruFilter(Channel inChannel) ^ exit status 1 'prog_int16_t' does not name a type This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.