[PD] Re: Compile a Pd external error

IOhannes m zmoelnig zmoelnig at iem.at
Tue Oct 31 08:29:28 CET 2006


Fanouris Moraitis wrote:
> Hi,
> 
> I am trying to compile the simple helloworld from your tutorial on how
> to write pd externals.
> 
> The only thing that I changed is the path for my m_pd.h
> 
> I have the following error when i do gcc helloworld.c
> 
> 
> /usr/bin/ld: Undefined symbols:
> _main
> _class_addbang
> _class_new
> _gensym
> _pd_new
> _post
> collect2: ld returned 1 exit status
> 
> do I have to add some options to the gcc?

yes, since gcc will by default produce an executable, which is not what
you want.

> (I am working on Os x 10.4.7 and I have a precompiled version for pd
> extended)

there are makefiles for the examples in
http://pure-data.cvs.sourceforge.net/pure-data/doc/tutorials/externals-howto/

mfga.sdr
IOhannes




More information about the Pd-list mailing list