<p dir="ltr">Rt audio and poet audio are different projects.</p>
<p dir="ltr">For RtAudio, there are 2 CPP files that you compile into your code : no linking library just yet.</p>
<p dir="ltr">When you want jack / salsa support, you add the appropriate #define, and link to the libs needed by that output framework. Check the RtAudio page for details, they have good docs.</p>
<p dir="ltr">HTH, -Harry </p>
<div class="gmail_quote">On 2 Apr 2014 12:00, "R. Mattes" <<a href="mailto:rm@mh-freiburg.de">rm@mh-freiburg.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 2 Apr 2014 09:19:38 +0000, Krause, Mathias wrote<br>
> Hi Thiago,<br>
><br>
> > Do you know if there is some rule to compiling using  librtaudio?<br>
> > Because, there is an error..and i don't know what's wrong. I'm using g++<br>
4.7.2 and i'm compiling using:<br>
> ><br>
> > $ g++<programname.cpp> -o <programname><br>
> ><br>
> > The error is: undefined reference to 'RtAudio::RtAudio(RtAudio::Api)'<br>
> > i'm including the lib in the program, normally!<br>
><br>
> you need to add the library to the linker with the -l option.<br>
<br>
And on most distros you might want to use rtaudio-config to find out the<br>
appropriate linker and compiler flags:<br>
<br>
 LIBS=`rtaudio-config --libs`<br>
 CFLAGS=`rtaudio-config --cxxflags`<br>
<br>
 etc.<br>
<br>
 And then use these in your compiler invocation/makefile. BTW, hint to<br>
 the portaudio developers: there's a rather standard tool for such tasks<br>
 called pkg-config. It might be a good idea to supply a portaudio.pc<br>
 file instead of/together with the rtaudio-config program.<br>
<br>
  Cheers Ralf Mattes<br>
<br>
<br>
> Regards,<br>
> Mathias<br>
><br>
> _______________________________________________<br>
> Linux-audio-dev mailing list<br>
> <a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a><br>
> <a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
<br>
<br>
--<br>
R. Mattes -<br>
Hochschule fuer Musik Freiburg<br>
<a href="mailto:rm@inm.mh-freiburg.de">rm@inm.mh-freiburg.de</a><br>
<br>
_______________________________________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
</blockquote></div>