Atte André Jensen wrote: > Hi > > I took the code found here > http://iem.kug.ac.at/pd/externals-HOWTO/node3.html#SECTION00036000000000000000 > placed it in a file helloworld.c, but got: > > [EMAIL PROTECTED]:~/music/synth/pd/externals/atte$ gcc helloworld.c > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function > `_start': > ../sysdeps/i386/elf/start.S:115: undefined reference to `main' > /tmp/ccuN3zCm.o: In function `helloworld_bang': > helloworld.c:(.text+0xe): undefined reference to `post' > /tmp/ccuN3zCm.o: In function `helloworld_new': > helloworld.c:(.text+0x23): undefined reference to `pd_new' > /tmp/ccuN3zCm.o: In function `helloworld_setup': > helloworld.c:(.text+0x3d): undefined reference to `gensym' > helloworld.c:(.text+0x6d): undefined reference to `class_new' > helloworld.c:(.text+0x89): undefined reference to `class_addbang' > collect2: ld returned 1 exit status > > I must have done something quite wrong... > > This is under debian/linux, gcc version 4.1.2, pd 0.40-2. > > I believe the file m_pd.h is to be found: > [EMAIL PROTECTED]:~/music/synth/pd/externals/atte$ slocate m_pd.h > /usr/local/include/m_pd.h > /home/atte/software/pd/pd-0.40-2/src/m_pd.h > > Hi Atte, You're making a library, not an executable.
Try this: gcc -o helloworld.o -c helloworld.c then ld -export_dynamic -shared -o helloworld.pd_linux -c. _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
