Thanks Martin that got rid of the xport warning message<div><br></div><div>aloha</div><div>Rick<br><br><div class="gmail_quote">On Sat, Sep 10, 2011 at 11:45 AM, Martin Peach <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It should be -export-dynamic, not -export_dynamic.<br>
<br>
Martin<div><div></div><div><br>
<br>
<br>
On 2011-09-10 17:34, Rick T wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Greetings All<br>
<br>
I&#39;m having trouble getting my external to work, It compiles with no<br>
errors and has 1 warning when I do a make but it completes<br>
successfully see warning below.<br>
<br>
cc -export_dynamic -shared  -lc -lm -DPD -O2 -funroll-loops<br>
-fomit-frame-pointer -fPIC -Wall -W -Wshadow -Wstrict-prototypes -Werror<br>
-Wno-unused -Wno-parentheses -Wno-switch -I../../../../pd/src -o<br>
sineq.pd_linux sineq.c<br>
/usr/bin/ld: warning: cannot find entry symbol xport_dynamic; defaulting<br>
to 0000000000000980<br>
strip --strip-unneeded sineq.pd_linux<br>
make[1]: Leaving directory `/home/rat/Documents/pd/code&#39;<br>
Compilation finished successfully.<br>
<br>
I copy over the sineq.pd_linux to the pd-externals directory but when I<br>
try and add the external in PD it says &quot;couldn&#39;t create&quot; on the main<br>
console screen.<br>
<br>
Here&#39;s a link to the workflow of my thinking and what I&#39;m trying to do,<br>
notice I have 4 float inputs and 1 signal output<br>
<a href="http://dl.dropbox.com/u/6576402/questions/pd/Sine_EQ_Diagram.jpg" target="_blank">http://dl.dropbox.com/u/<u></u>6576402/questions/pd/Sine_EQ_<u></u>Diagram.jpg</a><br>
<br>
Link to code: (Pastebin)<br>
<a href="http://pastebin.com/wW9H4pWY" target="_blank">http://pastebin.com/wW9H4pWY</a><br>
<br>
Link to makefile (pastebin)<br>
<a href="http://pastebin.com/z9aTYVNY" target="_blank">http://pastebin.com/z9aTYVNY</a><br>
<br>
My external is a reproduction of the sinewave equation with 4 inputs<br>
that are floats and one output signal my logic is to have 4 inlets one<br>
for the frequency,amplitude,phase and vertical offset and an output for<br>
the created signal.  Granted this isn&#39;t the final equation but this will<br>
help me understand how to create the full equation once done.   If you<br>
want to see the full equation I&#39;ll be using here&#39;s a link to it below.<br>
<a href="http://dl.dropbox.com/u/6576402/questions/eq1.txt" target="_blank">http://dl.dropbox.com/u/<u></u>6576402/questions/eq1.txt</a><br>
<br>
Basically it&#39;s a 1 second periodic signal with the sample rate at 44100<br>
which the equation gives me control over the frequency,amplitude,phase<br>
and vertical offset, which will be controlled by a usb midi controller.<br>
<br>
Another question I have is what do I use for the t (time) for my final<br>
equation is that the t_sample object in PD?  or do I need to create a<br>
for loop counting from 1-44100 for a 1 second 44100 sampled equation?<br>
like this link uses<br>
<a href="http://www.daniweb.com/software-development/c/threads/354944" target="_blank">http://www.daniweb.com/<u></u>software-development/c/<u></u>threads/354944</a><br>
<br>
<br>
<br>
PS: I&#39;m compiling on ubuntu 10.04 using gcc<br>
Sorry for the link / information overload.  After going over the<br>
d_osc.c, bassemu.c and the pan~ tutorial I&#39;m a little stuck and not sure<br>
what&#39;s causing the issue.<br>
<br>
Aloha<br>
Rick<br>
<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<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/<u></u>listinfo/pd-list</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>
</div>