I tried to make DLLs of nrepeat and nnrepeat, but it seems I'm too ignoramus to find out how to proceed, I've entered those lines in the msys shell

gcc -c nrepeat.c -o nrepeat.o

ld -export_dynamic -shared -I../../pd/src/ -o nrepeat.dll nrepeat.o ../../pd/bin/pd.dll

the external is built without error, but couldn't be created:

\\extra\\nnrepeat.dll: couldn't load
 nnrepeat 1

the verbose option gives messages I've pain to interpret.

I've also tried to write a Makefile, it's attached, it does the same thing

Claude Heiland-Allen a écrit :
Hi everyone,

I've been playing around with recursion in Gem, and thought I'd document my experiences.


You can download the patches here (Gzip'd Tar):

https://devel.goto10.org/dl.php?repname=maximus&path=%2Ftutorials%2Fgem-recursion%2F&rev=0&isdir=1


You will also need a couple of externals that you can download here (Gzip'd Tar, C source code only):

https://devel.goto10.org/dl.php?repname=maximus&path=%2Fclodlib%2F&rev=0&isdir=1

These externals are necessary because I haven't figured out a nice way to handle recursive re-entrancy in a Pd patch. If I do I'll update the tutorial with the dependancy removed.


Screenshots are here, in case you're not near a computer with Pd+Gem:

http://www.blurty.com/users/claudiusmaximus/day/2007/07/18#407


Please let me know if you find it useful, or if you don't. Thanks for your attention,


Claude

# clodlib -- miscellaneous objects for Pd
# Copyright (C) 2007 Claude Heiland-Allen <[EMAIL PROTECTED]>
# 
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.

CFLAGS =  --verbose -O2 -export_dynamic -shared -I../../pd/src/
PDDLL = ../../pd/bin/pd.dll

#

all: nrepeat.dll nnrepeat.dll

clean:
        rm -f nrepeat.dll nnrepeat.dll
#

nrepeat.dll: nrepeat.c Makefile
        gcc -c nrepeat.c -o nrepeat.o && ld $(CFLAGS) -o nrepeat.dll nrepeat.o  
$(PDDLL)

nnrepeat.dll: nnrepeat.c Makefile
        gcc -c nnrepeat.c -o nnrepeat.o && ld $(CFLAGS) -o nnrepeat.dll 
nnrepeat.o  $(PDDLL)

# EOF
begin:vcard
fn:Patrice Colet
n:Colet;Patrice
adr;dom:;;;Nice;;06100
email;internet:[EMAIL PROTECTED]
tel;cell:06 32 66 03 57
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to