title: Undefined Symbols when trying to compile RtAudio
body: <p>I'm trying to use RtAudio and RtMidi together. I have in the same folder RtAudio.cpp, RtAudio.h, RtHelper.h, RtMidi.cpp and RtMidi.h as well as 2 test programs, midiprobe.cpp and audioprobe.cpp.</p>
  
  <p>Compiling midiprobe with the <a href="http://www.music.mcgill.ca/~gary/rtmidi/index.html#compiling" rel="nofollow">default command</a> works, but when I try to do the same for <a href="http://www.music.mcgill.ca/~gary/rtaudio/compiling.html" rel="nofollow">audioprobe</a> to test RtAudio, I get the errors.</p>
  
  <p>Here is what I use to compile:</p>
  
  <pre><code>g++ -Wall -D__MACOSX_CORE__ -o audioprobe audioprobe.cpp RtAudio.cpp -framework CoreAudio -lpthread
  </code></pre>
  
  <p>And these are the errors:</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
   "_CFRelease", referenced from:
    RtApiCore::getDeviceInfo(unsigned int)in cc89M9Ki.o
  "_CFStringGetCString", referenced from:
    RtApiCore::getDeviceInfo(unsigned int)in cc89M9Ki.o
  "_CFStringGetLength", referenced from:
    RtApiCore::getDeviceInfo(unsigned int)in cc89M9Ki.o
  "_CFStringGetSystemEncoding", referenced from:
    RtApiCore::getDeviceInfo(unsigned int)in cc89M9Ki.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I'm quite new to this sort of stuff (mostly had frameworks ready-made till now) and haven't been able to figure this out yet. Since it's the default example, I'm really lost as to what to do next... 
  Thanks in advanced.</p>