<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Dec 27, 2010, at 2:08 AM, katja wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Ivica Ico Bukvic wrote:</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br> </span></font><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">&gt;&gt;I've taken a quick stab at trying to port John Gibson's spectdelay~<br>&gt;&gt;external from Max to Pd and got stuck at the following error:<br> <br>&gt;&gt;load_object: Symbol "spectdelay_tilde_setup" not found</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div> <div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">From the code, it seems that the extern "C" specification is commented out together with Max-specific code for the setup function.</span></font></div></blockquote><br></div><div>Yeah, it works differently in Max/MSP. &nbsp;As far as I understand it, Max/MSP calls the setup() function for externals in a different way. &nbsp;Each external object has a main() function, so they can't all be loaded into the global namespace. &nbsp;In Pd each external has a unique setup function name that is loaded into the global namespace.&nbsp;</div><div><br></div><div>.hc</div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br></div><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br></div><div>I have always wished for my computer to be as easy to use as my&nbsp;telephone; my wish has come true because I can no longer figure out&nbsp;how to use my telephone."&nbsp;&nbsp;--Bjarne Stroustrup (creator of C++)</div></span></div></span> </div><br></body></html>