<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>ah, for this to work you'd have to make sure that "timbreID_setup" is not exported... pd-lib-builder exports all non-static functions by default...
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 02. August 2019 um 16:30 Uhr<br/>
<b>Von:</b> "Christof Ressi" <christof.ressi@gmx.at><br/>
<b>An:</b> "William Brent" <william.brent@gmail.com>, Pd-List <pd-list@lists.iem.at><br/>
<b>Betreff:</b> Re: [PD] [PD-announce] timbreID 0.8.1</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>actually, I think you could name the library setup function just "setup". For every file, Pd's loader first looks for "<object-name>_setup" and then looks for "setup". Individual objects should follow the first naming convention, so they can be built as part of a single binary library. As you've noted, there can't be more than one (non-static) function called "setup" in a single binary, otherwise you get linker errors.</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 15:29 Uhr<br/>
<b>Von:</b> "William Brent" <william.brent@gmail.com><br/>
<b>An:</b> "pd-lista puredata" <pd-list@iem.at><br/>
<b>Betreff:</b> Re: [PD] [PD-announce] timbreID 0.8.1</div>

<div>
<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>
_______________________________________________ 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>
_______________________________________________ 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>