Hi all,<div><br></div><div>Thought I might as well ask this here because you guys know everything :)</div><div><br></div><div>I&#39;m writing an external to be built into an iOS app that&#39;s running Pd. The catch is I need to interface with a C++ library within the external. </div>

<div><br></div><div>The external builds and runs fine if I&#39;m using the C compiler (in Xcode) but I can&#39;t access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can&#39;t find &#39;class_addmethod&#39;</div>

<div><br></div><div>                          <i>&#39;No matching function for call to &#39;class_addmethod&#39;</i></div><div><br></div><div>I&#39;ve tried declaring the setup function as C code like Katja <a href="http://www.katjaas.nl/pitchshift/soundtouch~.html">explains on her site</a>:</div>

<div>







<p class="p1"><span class="s1">                          extern</span> <span class="s2">&quot;C&quot;</span> <span class="s1">void</span> external_tilde_setup(<span class="s1">void</span>) { }</p><div><div><div>But that still didn&#39;t seem to work. I was also going through the list and found <a href="http://lists.puredata.info/pipermail/pd-list/2002-02/004485.html">this thread</a> but I&#39;m not sure if it&#39;s the right approach. Plus I&#39;m more of an audio guy than programmer :)</div>

<div><br></div><div>Any ideas would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Joe</div><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div></div></div>