Hello All,
It's hard to post about things like dll compilation in times like these...deepest sympathy to all affected.
Reading IOhannes's tutorial (Zmoelnig is THE MAN!), I'm trying to compile 'hello_world' as a dll. I'm using mingw in win2k; after saving hello_world.c and compiling with [gcc -c hello_world.c], there's no problem. Still no problem when I give it [gcc -c -DBUILD_DLL hello_world.c]. So far so good, but when I call dllwrap with:
dllwrap --output-lib=libtstdll.a --dllname=hello_world.dll --driver-name=gcc hello_world.o
I get:
dllwrap: no export definition file provided dllwrap: creating one, but that may not be what you want
Anyone help? Is --output-lib=libtstdll.a the wrong thing?
Thanks,
d David Casal ¬ d.casal@uea.ac.uk http://ariada.uea.ac.uk/~dcasal ARTWORLD Project Sainsbury Centre For Visual Arts University of East Anglia 01603-593246 --- 07803-173959
'hello_world' as a dll. I'm using mingw in win2k; after saving hello_world.c and compiling with [gcc -c hello_world.c], there's no problem. Still no problem when I give it [gcc -c -DBUILD_DLL hello_world.c]. So far so good, but when I call dllwrap with: dllwrap --output-lib=libtstdll.a --dllname=hello_world.dll --driver-name=gcc hello_world.o I get: dllwrap: no export definition file provided dllwrap: creating one, but that may not be what you want Anyone help? Is --output-lib=libtstdll.a the wrong thing?
hi ! unfortunately i have no idea how to handle gcc under win2k. anyhow, you have to export the helloworld_setup() symbol to make it work.
however, i see the need to add a chapter to the HOWTO, where compailing issues are handled.
in the meantime i can only advise you to check the makefiles that come with pd (there are makefiles for various platforms in the pd/extra/*/ directories) and create your own. i hope you will get it running soon. i would be glad if you could inform me on any proceedings you make, so i can include them in the compilation-howto.
all the luck
mfg.cds.sdat IOhannes
I'm wondering if someone could give me some advice for capturing a running average of incoming numbers. ie capture 10 numbers / 10 take in the next number and drop the first one etc. I'm still a newbie so there is probably an easy way to do this that I can't see. Thanks! Jim
On Sat, 5 Aug 2000, Jim Ruxton wrote:
I'm wondering if someone could give me some advice for capturing a running average of incoming numbers. ie capture 10 numbers / 10 take in the next number and drop the first one etc. I'm still a newbie so there is probably an easy way to do this that I can't see. Thanks! Jim
if you need your moving average filter for reasonably small numbers only (like 10) and you only need it for this number of values (10; but not 11 or 4) you can build a moing average with elemnts like "t f f", "f", "+" and "/". the easiest moving average (vor only 2 values) would be a
=------
|t f f|
=-----=
\ /
\ /
X
/ \
=-=
|+|
=--
|
=------
|* 0.5|
=------
by just cascading this, you can build a moving average for floats for any windowsize.
if you are lazy or need a filter that supports various window-sizes, you might want to try out the "mavg"-object in the zexy-external.
mfg.cdas.asdt IOhannes