<div class="gmail_extra">Hi Ed,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for the advice, although I don&#39;t think this piece of work warrants changing our audio engine :)</div><div class="gmail_extra">


<br></div><div class="gmail_extra">ofxPd looks cool though, what&#39;s sort of app are you making? (If you can say). </div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">


Joe<br><br><div class="gmail_quote">On 27 April 2012 02:05, Ed Kelly <span dir="ltr">&lt;<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Hi Joe,</span></div><div><br><span></span></div><div><span>Have you thought of using ofxPd?</span></div><div><br><span></span></div>


<div><span>I&#39;m involved in the creation of an app for the iPhone right now, and we&#39;re using ofxPd from Dan Wilcox:</span></div><div><span><a href="https://github.com/danomatika/ofxPd" target="_blank">https://github.com/danomatika/ofxPd</a></span></div>


<div><span>Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++.</span></div><div><span>Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment.</span></div>


<div><span>Bear in mind that Apple do not like GnuGPL licensed stuff, so I&#39;ve created BSD licensed versions of some of my own Pd externals for this project.<br></span></div><div><br></div><div>And the
 app works. We&#39;re in the final stages now, so I&#39;ll post to the list when it&#39;s complete!</div><div>Best,</div><div>Ed<br><span></span></div><div> </div><div>Gemnotes-0.1alpha: Live music notation for Pure Data<br>


<a href="http://sharktracks.co.uk/" target="_blank">http://sharktracks.co.uk/</a><br></div>  <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">


 <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Joe White &lt;<a href="mailto:white.joe4@gmail.com" target="_blank">white.joe4@gmail.com</a>&gt;<br> <b><span style="font-weight:bold">To:</span></b> pd-list &lt;<a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a>&gt; <br>


 <b><span style="font-weight:bold">Sent:</span></b> Thursday, 26 April 2012, 16:51<br> <b><span style="font-weight:bold">Subject:</span></b> [PD] [Pd] Compile external with C++ compiler?<br> </font> </div><div><div>
 <br><div>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 rel="nofollow" href="http://www.katjaas.nl/pitchshift/soundtouch%7E.html" target="_blank">explains on her site</a>:</div>




<div>







<div><span>                          extern</span> <span>&quot;C&quot;</span> <span>void</span> external_tilde_setup(<span>void</span>) { }</div><div><div><div>But that still didn&#39;t seem to work. I was also going through the list and found <a rel="nofollow" href="http://lists.puredata.info/pipermail/pd-list/2002-02/004485.html" target="_blank">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>
</div><br></div></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>


<br><br> </div> </div>  </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div>