hi... i'm trying to do a helloworld external but i'm with some errors,
this is what i did so far:
i copied and paste the helloworld from how to do an external tutorial and tried to compile with following commands and respectives errors:
gcc -c helloworld.c -o helloworld.o
helloworld.c: In function ‘helloworld_setup’:
helloworld.c:19: warning: passing argument 1 of ‘class_new’ makes pointer from integer without a cast
/usr/include/pdextended/m_pd.h:423: note: expected ‘struct t_symbol *’ but argument is of type ‘int’
ld -export_dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm
ld: warning: cannot find entry symbol xport_dynamic; defaulting to 00000000000002a0
**because is just a warnings i tried to move this external to extra but when i try to create a helloworld object on pd says the simbol "gemsym" is not defined
so i found another comands to test:
gcc -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I ./ -o helloworld.o -c helloworld.c
helloworld.c: In function ‘helloworld_setup’:
helloworld.c:16: warning: implicit declaration of function ‘gemsym’
helloworld.c:19: warning: passing argument 1 of ‘class_new’ makes pointer from integer without a cast
/usr/include/pdextended/m_pd.h:423: note: expected ‘struct t_symbol *’ but argument is of type ‘int’
gcc -bundle -undefined -suppress -flat_namespace -o helloworld.pd_darwin helloworld.o
cc: unrecognized option '-bundle'
cc: unrecognized option '-suppress'
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000008048220
helloworld.o: In function `helloworld_setup':
helloworld.c:(.text+0xe): undefined reference to `gemsym'
helloworld.c:(.text+0x3e): undefined reference to `class_new'
helloworld.c:(.text+0x53): undefined reference to `class_addbang'
helloworld.o: In function `helloworld_new':
helloworld.c:(.text+0x6f): undefined reference to `pd_new'
helloworld.o: In function `helloworld_bang':
helloworld.c:(.text+0x8f): undefined reference to `post'
collect2: ld returned 1 exit status
if someone can help with this... maybe i didnt install everything i need...
thx!!