This doesn't seem to work for me. I get:dmitri wrote:On Mac OS X can be compiled as:
- Code: Select all
g++ -D__MACOSX_CORE__ -Wall -o mdfwupdate update.cpp RtMidi.cpp -framework CoreMidi -framework CoreAudio -framework CoreFoundation
- Code: Select all
update.cpp:8: warning: deprecated conversion from string constant to ‘char*’
update.cpp:11: warning: deprecated conversion from string constant to ‘char*’
update.cpp: In function ‘int main(int, char**)’:
update.cpp:43: warning: format not a string literal and no format arguments
update.cpp:150: warning: format ‘%2X’ expects type ‘unsigned int*’, but argument 3 has type ‘unsigned char*’
update.cpp:211: error: ‘Sleep’ was not declared in this scope
RtMidi.cpp: In member function ‘virtual void RtMidiIn::openPort(unsigned int, std::string)’:
RtMidi.cpp:371: warning: NULL used in arithmetic
RtMidi.cpp: In function ‘const __CFString* EndpointName(MIDIEndpointRef, bool)’:
RtMidi.cpp:454: warning: NULL used in arithmetic
RtMidi.cpp:470: warning: NULL used in arithmetic
RtMidi.cpp: In function ‘const __CFString* ConnectedEndpointName(MIDIEndpointRef)’:
RtMidi.cpp:528: error: ‘EndianS32_BtoN’ was not declared in this scope
RtMidi.cpp: In member function ‘virtual void RtMidiOut::openPort(unsigned int, std::string)’:
RtMidi.cpp:668: warning: NULL used in arithmetic
...and nothing seems to happen. I'm supposed to see a mdfwupdate binary after compiling, right? I'm no code expert (obviously) so if I'm missing something obvious, please tell me. Any ideas?
I'm running Mac OS X 10.6.3.