MIDI IN problem when compiling in a Mac - Arduino MIDI Library

Hello everyone!!

Has anybody had any trouble on the reception of MIDI messages, when compiling and uploading the sketch with a Mac computer?

The only way to get through the compilation without errors like "MIDI not defined" when using the latest Arduino IDE is to add right after the includes the line

MIDI_CREATE_DEFATULT_INSTANCE()

but whenever I do this and upload the sketch, the MIDI IN doesn't work properly.

Specificly, i have a midi controller, which has buttons next to LEDs, and the button sends a NOTE message, and when the receiver replies with the same note, the LEDs turn on.

If, however, I compile on a PC with Windows 7, I am not required to add that line of code, so I comment it out and everything works perfectly!!

I have no clues if the library has some issues when compiling on a Mac computer, or if the problem is the Arduino IDE running on a Mac.

Any clues??

Small update on this:

I realized that if the library on my PC is installed on

C:\Users\User\Documents\Arduino\libraries\MIDI

that line is not required. If I place the library on

C:\Program Files (x86)\Arduino\libraries\MIDI

I am required to uncomment that line, for the compiler to work.

I tried the same (installing the library either on the Package folder in Applications, or in Documents) on a Mac computer, but it needs that line uncommented in any case.

The only true thing I know is that:

If I compile without that line, MIDI IN works perfectly. Otherwise, it doesn't.