<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hello: Now I tried the following, also the path of the header in the corresponding file.&nbsp; Do I need RtAudio library&nbsp; or RtAudio.cpp in the command line seperately? I tried using this too.<br>g++ -Wall -DHAVE_GETTIMEOFDAY -D__MACOSX_CORE__ -D__LITTLE_ENDIAN__&nbsp; -I/Users/atunu/Desktop/audio_tool/stk-4.4.1/include/&nbsp; -o test test.cpp&nbsp; -L/Users/atunu/Desktop/audio_tool/stk-4.4.1/src/ -lstk <br>Undefined symbols:<br>&nbsp; "_AudioDeviceCreateIOProcID", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;
 "_AudioDeviceDestroyIOProcID", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::closeStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::closeStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp; "_AudioHardwareGetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDefaultOutputDevice()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDefaultOutputDevice()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDefaultInputDevice()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDefaultInputDevice()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned
 int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioStreamSetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in
 cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioDeviceAddPropertyListener", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioDeviceGetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned
 int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioHardwareGetPropertyInfo", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceCount()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp; "_AudioDeviceStop", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::stopStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::stopStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::closeStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::closeStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp; "_AudioHardwareSetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;
 "_AudioDeviceGetPropertyInfo", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hasProperty(unsigned long, unsigned long, bool, unsigned long)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::getDeviceInfo(unsigned int)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioDeviceSetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioStreamGetProperty", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)in cczG8Ae6.o<br>&nbsp; "_AudioDeviceStart", referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::startStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RtApiCore::startStream()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in cczG8Ae6.o<br>ld: symbol(s) not found<br>collect2: ld returned 1 exit status<br><br>I also tried the following and with some different
 options:<br>g++ -Wall -DHAVE_GETTIMEOFDAY -D__MACOSX_CORE__ -D__LITTLE_ENDIAN__&nbsp;
-I/Users/atunu/Desktop/audio_tool/stk-4.4.1/include/&nbsp; -o test test.cpp
/Users/atunu/Desktop/audio_tool/stk-4.4.1/src/RtAudio.cpp
-L/Users/atunu/Desktop/audio_tool/stk-4.4.1/src/ -lstk -L/Users/atunu/Desktop/audio_tool/rtaudio-4.0.6/librtaudio.a<br>thanks.<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Gary Scavone &lt;gary@ccrma.stanford.edu&gt;<br><b><span style="font-weight: bold;">To:</span></b> Atunu Name &lt;atunu64@yahoo.ca&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Saturday, September 19, 2009 1:15:21 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Stk] Fw:  compilation error<br></font><br>Hi Atuna,<br><br>I would expect your statement should be something like:<br><br>g++ -Wall -D__LITTLE_ENDIAN__ -I /Users/atunu/Desktop/audio_tool/stk-4.4.1/include/ -o test test.cpp -L/Users/atunu/Desktop/audio_tool/stk-4.4.1/src/ -lstk<br><br>--gary<br><br>On 19-Sep-09, at 2:26 AM, Atunu Name wrote:<br><br>&gt;
 Hello Gary,<br>&gt; thank you for your response.<br>&gt;&nbsp; I compiled the software according to the instructions. I can use play or record or others in the project/ examples/ folder.<br>&gt; <br>&gt; I tried o follow the link below:<br>&gt; <a href="http://ccrma.stanford.edu/software/stk/compile.html" target="_blank">http://ccrma.stanford.edu/software/stk/compile.html</a><br>&gt; The message are follows:<br>&gt; g++ -Wall -D__LITTLE_ENDIAN__ -I /Users/atunu/Desktop/audio_tool/stk-4.4.1/include/stk -o test test.cpp -L /Users/atunu/Desktop/audio_tool/stk-4.4.1/src/libstk.a<br>&gt; <br>&gt; test.cpp:3:22: error: FileWvIn.h: No such file or directory<br>&gt; test.cpp:4:21: error: RtWvOut.h: No such file or directory<br>&gt; test.cpp:5: error: expected namespace-name before ‘;’ token<br>&gt; test.cpp:5: error: ‘&lt;type error&gt;’ is not a namespace<br>&gt; test.cpp: In function ‘int main()’:<br>&gt; test.cpp:10: error: ‘Stk’ has not been
 declared<br>&gt; test.cpp:10: error: ‘setSampleRate’ was not declared in this scope<br>&gt; test.cpp:13: error: ‘WvIn’ was not declared in this scope<br>&gt; test.cpp:13: error: ‘input’ was not declared in this scope<br>&gt; test.cpp:15: error: ‘WvOut’ was not declared in this scope<br>&gt; test.cpp:15: error: ‘output’ was not declared in this scope<br>&gt; test.cpp:19: error: expected type-specifier before ‘FileWvIn’<br>&gt; test.cpp:19: error: expected `;' before ‘FileWvIn’<br>&gt; test.cpp:23: error: expected type-specifier before ‘RtWvOut’<br>&gt; test.cpp:23: error: expected `;' before ‘RtWvOut’<br>&gt; test.cpp:25: error: expected type-specifier before ‘StkError’<br>&gt; test.cpp:25: error: expected `)' before ‘&amp;’ token<br>&gt; test.cpp:25: error: expected `{' before ‘&amp;’ token<br>&gt; test.cpp:25: error: expected primary-expression before ‘)’ token<br>&gt; test.cpp:25: error: expected `;'
 before ‘)’ token<br>&gt; test.cpp:47: error: expected type-specifier before ‘StkError’<br>&gt; test.cpp:47: error: expected `)' before ‘&amp;’ token<br>&gt; test.cpp:47: error: expected `{' before ‘&amp;’ token<br>&gt; test.cpp:47: error: expected primary-expression before ‘)’ token<br>&gt; test.cpp:47: error: expected `;' before ‘)’ token<br>&gt; test.cpp:52: error: type ‘&lt;type error&gt;’ argument given to ‘delete’, expected pointer<br>&gt; test.cpp:53: error: type ‘&lt;type error&gt;’ argument given to ‘delete’, expected pointer<br>&gt; test.cpp:56: error: expected `}' at end of input<br>&gt; test.cpp:56: error: expected `}' at end of input<br>&gt; <br>&gt; I tried with<br>&gt; /usr/include/pthread or -lpthread<br>&gt; <br>&gt; But still I could not compile the code. Is there anything that I can do to compile the code different from the source software? I could not compile test.cpp in the project/example
 folder too.<br>&gt; Thank you.<br>&gt; ----- Forwarded Message ----<br>&gt; From: Gary Scavone &lt;<a ymailto="mailto:gary@ccrma.stanford.edu" href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>&gt;<br>&gt; To: Atunu Name &lt;<a ymailto="mailto:atunu64@yahoo.ca" href="mailto:atunu64@yahoo.ca">atunu64@yahoo.ca</a>&gt;<br>&gt; Cc: <a ymailto="mailto:stk@ccrma.stanford.edu" href="mailto:stk@ccrma.stanford.edu">stk@ccrma.stanford.edu</a><br>&gt; Sent: Thursday, September 17, 2009 5:45:30 PM<br>&gt; Subject: Re: [Stk] compilation error<br>&gt; <br>&gt; Hi Atunu,<br>&gt; <br>&gt; I think you need the pthread library for the MUTEX stuff.&nbsp; In your second attempt, there appears to either be a badly formatted command line and/or the compiler can't find the STK library.&nbsp; Did you run "make" in the src directory to compile the STK library?<br>&gt; <br>&gt; --gary<br>&gt; <br>&gt; On 16-Sep-09, at 12:05 PM, Atunu Name wrote:<br>&gt; <br>&gt;
 &gt; Hello,<br>&gt; &gt;<br>&gt; &gt;&nbsp; I am trying to compile an example, test.cpp&nbsp; in a separate file. I have some errors:<br>&gt; &gt;&nbsp; g++ -o test&nbsp; -I../../audio_tool/stk-4.4.1/include&nbsp; test.cpp&nbsp; -L ../../audio_tool/stk-4.4.1/src/ -lstk<br>&gt; &gt; ../../audio_tool/stk-4.4.1/include/Mutex.h:67: error: ‘MUTEX’ does not name a type<br>&gt; &gt; ../../audio_tool/stk-4.4.1/include/Mutex.h:68: error: ‘CONDITION’ does not name a type<br>&gt; &gt;<br>&gt; &gt; I also tried the following:<br>&gt; &gt; g++ -O3 -Wall -o test&nbsp; -I ../../audio_tool/stk-4.4.1/include&nbsp; -DHAVE_GETTIMEOFDAY -D__MACOSX_CORE__-D__LITTLE_ENDIAN__&nbsp; test.cpp&nbsp; -L ../../audio_tool/stk-4.4.1/src/ -lstk -lpthread -framework CoreAudio<br>&gt; &gt; &lt;command line&gt;:1:16: warning: missing whitespace after the macro name<br>&gt; &gt; ld: library not found for -lstk<br>&gt; &gt; collect2: ld returned 1 exit status<br>&gt; &gt; My
 stk-4.4.1 is on the desktop, and I am trying to use the test.cpp to make some changes according to my need&nbsp; in another folder directory on my desktop.<br>&gt; &gt; I played around this but still errors. Can anybody help me with an example, please.<br>&gt; &gt; Thank you.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now!<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Stk mailing list<br>&gt; &gt; <a ymailto="mailto:Stk@ccrma.stanford.edu" href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>&gt; &gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>&gt; <br>&gt; <br>&gt; Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for
 Free!_______________________________________________<br>&gt; Stk mailing list<br>&gt; <a ymailto="mailto:Stk@ccrma.stanford.edu" href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>&gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br><br></div></div></div><br>
      <hr size=1>
Looking for the perfect gift?<a href="http://www.flickr.com/gift/"><b> Give the gift of Flickr!</b></a></body></html>