<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>> So, you could rename the setup function for the timbreID class because if your library calls it, it doesn't matter to PD what it is called.</div>

<div> </div>

<div>This works if you *only* want to build the library as a single binary. In case William also wants to be able to build the library as individual objects, I think there's no easy solution which doesn't involve some preprocessor defines or hacking Makefile.pdlibbuilder... In that case I would say: don't bother :-)</div>

<div> </div>

<div>Christof</div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Freitag, 02. August 2019 um 16:04 Uhr<br/>
<b>Von:</b> "Alex Norman" <x37v.alex@gmail.com><br/>
<b>An:</b> pd-list@lists.iem.at, "William Brent" <william.brent@gmail.com>, "pd-lista puredata" <pd-list@iem.at><br/>
<b>Betreff:</b> Re: [PD] [PD-announce] timbreID 0.8.1</div>

<div>I'm pretty sure that there is only one "special" name that you need for a function and that is the setup entry point for the dynamic library that contains your external/externals, which is named after the file it's in. So, you could rename the setup function for the timbreID class because if your library calls it, it doesn't matter to PD what it is called. Then rename your whole library and it's setup entry point to timbreID, and then you should be able to have [timbreID/timbreID]<br/>
<br/>
Alex<br/>
 
<div class="gmail_quote">On August 2, 2019 6:29:44 AM PDT, William Brent <william.brent@gmail.com> wrote:
<blockquote class="gmail_quote" style="margin: 0.0pt 0.0pt 0.0pt 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>Maybe there's a trick someone can suggest, but I didn't think that was possible. There's a timbreID.c source file for the [timbreID] object in the library, and a timbreIDLib.c source file for building the whole library as a single binary. That calls the _setup() functions for all the individual objects and also has a timbreIDLib_setup function itself. So making the names the same would result in two timbreID_setup() calls that are supposed to do two different things. I never looked into ways to work around that...
<div> 
<div> </div>
</div>
</div>
 

<div class="gmail_quote">
<div class="gmail_attr">On Thu, Aug 1, 2019 at 4:42 PM Alexandre Torres Porres <<a href="mailto:porres@gmail.com" onclick="parent.window.location.href='mailto:porres@gmail.com'; return false;" target="_blank">porres@gmail.com</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div> </div>
 

<div class="gmail_quote">
<div class="gmail_attr">Em qui, 1 de ago de 2019 às 13:27, William Brent <<a href="mailto:william.brent@gmail.com" onclick="parent.window.location.href='mailto:william.brent@gmail.com'; return false;" target="_blank">william.brent@gmail.com</a>> escreveu:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>Hi Alex, thanks for taking a look. Yes - the reason I ended up calling the single library binary timbreIDLib is that there was already a [timbreID] object in the library. I just wanted to avoid confusion. Looking back, I wish I had named that object something else. At this point I think I'd rather live with an awkwardly named library rather than change the name of any individual object within it, but I'm open to suggestions.</div>
</blockquote>

<div> </div>

<div>My suggestion was to change the name of library, not the object. But I don't really understand the challenges involved (haven't really checked the code structure). Though I think it's feasible. What do you say? Have you considered it and thought it wasn't possible or worth it?</div>

<div> </div>

<div>cheers</div>
</div>
</div>
</blockquote>
</div>
 

<div> </div>
--

<div class="gmail_signature">William Brent<br/>
<a href="http://www.williambrent.com" target="_blank">www.williambrent.com</a><br/>
<br/>
“Great minds flock together”<br/>
Conflations: conversational idiom for the 21st century<br/>
<br/>
<a href="http://www.conflations.com" target="_blank">www.conflations.com</a></div>
</blockquote>
</div>
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></body></html>