<div dir="ltr">Any chance it could be a cocoa pod?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 5:17 AM, Perry R Cook <span dir="ltr">&lt;<a href="mailto:prc@cs.princeton.edu" target="_blank">prc@cs.princeton.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yay!!  Then it seems we have a pretty good solution.<br>
Save for the waiting for a clean and build, building<br>
the whole library seems like the best way.  Then<br>
naive programmers don&#39;t have to do lots of inheritance<br>
traversing to see what to compile, (just includes in<br>
their own code).<br>
<br>
This is really great!  Thanks for doing this all.<br>
<br>
PRC<br>
<br>
----- Original Message -----<br>
..<br>
<div class="HOEnZb"><div class="h5"><br>
Unless gcc/Xcode is really dumb (which I don&#39;t think it is), it will not<br>
link the whole of a static library with an app regardless - only the<br>
functions the app actually uses, i.e. the linker does the cherry-picking<br>
itself. The linker/compiler also does a standard &quot;dead code elimination&quot;<br>
step when compiling/optimising, so even the code you have written in the<br>
app but which never gets called is also excluded. So I just built  the<br>
whole of the stk as a static library (minus the redundant bits such as<br>
direct audio i/o). So - my stk static library runs out at some 9MB, but<br>
my test iOS app, which uses only a small part of it, is under 500K.<br>
<br>
Richard Dobson<br>
<br>
_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
<br>
_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
</div></div></blockquote></div><br></div>