before i write an external to do what i need it to do, i'm trying
to get ANY external into pd... and i'm having a hard time. i've compiled the .c file and now i have an object file (.o). what do i do now? by the way i am in linux. thans,
You need to use ld to turn it into a dynamic-linkable module.
# example pd makefile; # -------------------------------------
pd_linux: myextern.pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer
-Wall -W -Wstrict-prototypes -Werror
-Wno-unused -Wno-parentheses -Wno-switch
# location of m_pd.h PDINC = -I/path-to-pd/include
.c.pd_linux: gcc $(CFLAGS) $(LINUXCFLAGS) $(PDINC) -c *.c ld -export_dynamic -shared -o $*.pd_linux *.o -lc strip --strip-unneeded $*.pd_linux rm $*.o
clean: rm *.pd_linux
-aws