<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>Hello Gary,<br>thank you for your response.&nbsp; <br>&nbsp;I compiled the software according to the instructions. I can use play or record or others in the project/ examples/ folder. <br><br>I tried o follow the link below: <br><span>
<a target="_blank" href="http://ccrma.stanford.edu/software/stk/compile.html">http://ccrma.stanford.edu/software/stk/compile.html</a>&nbsp; </span><br>The message are follows:<br>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><br>test.cpp:3:22: error: FileWvIn.h: No such file or directory<br>test.cpp:4:21: error: RtWvOut.h: No such file or directory<br>test.cpp:5: error: expected namespace-name before ‘;’ token<br>test.cpp:5: error: ‘&lt;type error&gt;’ is not a namespace<br>test.cpp: In function ‘int main()’:<br>test.cpp:10: error: ‘Stk’ has not been declared<br>test.cpp:10: error: ‘setSampleRate’ was not declared in this scope<br>test.cpp:13: error: ‘WvIn’ was not declared in this scope<br>test.cpp:13: error: ‘input’ was not declared in this scope<br>test.cpp:15: error: ‘WvOut’ was not declared in this
 scope<br>test.cpp:15: error: ‘output’ was not declared in this scope<br>test.cpp:19: error: expected type-specifier before ‘FileWvIn’<br>test.cpp:19: error: expected `;' before ‘FileWvIn’<br>test.cpp:23: error: expected type-specifier before ‘RtWvOut’<br>test.cpp:23: error: expected `;' before ‘RtWvOut’<br>test.cpp:25: error: expected type-specifier before ‘StkError’<br>test.cpp:25: error: expected `)' before ‘&amp;’ token<br>test.cpp:25: error: expected `{' before ‘&amp;’ token<br>test.cpp:25: error: expected primary-expression before ‘)’ token<br>test.cpp:25: error: expected `;' before ‘)’ token<br>test.cpp:47: error: expected type-specifier before ‘StkError’<br>test.cpp:47: error: expected `)' before ‘&amp;’ token<br>test.cpp:47: error: expected `{' before ‘&amp;’ token<br>test.cpp:47: error: expected primary-expression before ‘)’ token<br>test.cpp:47: error: expected `;' before ‘)’
 token<br>test.cpp:52: error: type ‘&lt;type error&gt;’ argument given to ‘delete’, expected pointer<br>test.cpp:53: error: type ‘&lt;type error&gt;’ argument given to ‘delete’, expected pointer<br>test.cpp:56: error: expected `}' at end of input<br>test.cpp:56: error: expected `}' at end of input<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I tried with<br>/usr/include/pthread or -lpthread <br><br>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>Thank you.<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;">Cc:</span></b> stk@ccrma.stanford.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, September 17, 2009 5:45:30 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Stk] compilation error<br></font><br>Hi Atunu,<br><br>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><br>--gary<br><br>On 16-Sep-09, at 12:05 PM, Atunu Name wrote:<br><br>&gt; Hello,<br>&gt; <br>&gt;&nbsp; I am trying to compile an example, test.cpp&nbsp; in a separate file. I have some errors:<br>&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;
 ../../audio_tool/stk-4.4.1/include/Mutex.h:67: error: ‘MUTEX’ does not name a type<br>&gt; ../../audio_tool/stk-4.4.1/include/Mutex.h:68: error: ‘CONDITION’ does not name a type<br>&gt; <br>&gt; I also tried the following:<br>&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; &lt;command line&gt;:1:16: warning: missing whitespace after the macro name<br>&gt; ld: library not found for -lstk<br>&gt; collect2: ld returned 1 exit status<br>&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; I played around this but still errors. Can anybody help me with an example, please.<br>&gt; Thank you.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Yahoo! Canada
 Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now!<br>&gt; <br>&gt; _______________________________________________<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>Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! <a href="http://downloads.yahoo.com/ca/internetexplorer/"><b>Get it Now for Free! </b></a></body></html>