Howdy
Im trying to compile a pd object that I made last year on windows, but now I am running ubuntu 12.04 and I am having some difficulty. Ive gone through lots of tutorials on various ubuntu forums about how to compile .c files and it seems pretty straight forward but pretty much no matter what I do the compiler does not seem to be recognizing my header files.
When I run the following command: "sudo gcc phizzlor_tilde.c -o phizzlor~.pd_linux -I /usr/local/include " what I get for the error is:
In function `_start':
(.text+0x18): undefined reference to `main'
/tmp/ccVR0TQ9.o: In function `phizzlor_new':
phizzlor_tilde5.c:(.text+0xf): undefined reference to `pd_new'
phizzlor_tilde5.c:(.text+0x6d): undefined reference to `post'
phizzlor_tilde5.c:(.text+0x7b): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0x83): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0x8f): undefined reference to `inlet_new'
phizzlor_tilde5.c:(.text+0x9d): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xa5): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xb1): undefined reference to `inlet_new'
phizzlor_tilde5.c:(.text+0xbf): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xc7): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xd3): undefined reference to `inlet_new'
phizzlor_tilde5.c:(.text+0xe1): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xe9): undefined reference to `s_signal'
phizzlor_tilde5.c:(.text+0xf5): undefined reference to `inlet_new'
phizzlor_tilde5.c:(.text+0x101): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x110): undefined reference to `outlet_new'
/tmp/ccVR0TQ9.o: In function `phizzlor_perform':
phizzlor_tilde5.c:(.text+0x2b9): undefined reference to `pow'
/tmp/ccVR0TQ9.o: In function `phizzlor_dsp':
phizzlor_tilde5.c:(.text+0x45b): undefined reference to `dsp_add'
/tmp/ccVR0TQ9.o: In function `phizzlor_tilde_setup':
phizzlor_tilde5.c:(.text+0x511): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x545): undefined reference to `class_new'
phizzlor_tilde5.c:(.text+0x556): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x579): undefined reference to `class_addmethod'
phizzlor_tilde5.c:(.text+0x58e): undefined reference to `class_domainsignalin'
phizzlor_tilde5.c:(.text+0x59a): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x5c5): undefined reference to `class_addmethod'
phizzlor_tilde5.c:(.text+0x5d1): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x5fc): undefined reference to `class_addmethod'
phizzlor_tilde5.c:(.text+0x608): undefined reference to `gensym'
phizzlor_tilde5.c:(.text+0x633): undefined reference to `class_addmethod'
collect2: ld returned 1 exit status
Even though "m_pd.h" is in the folder "/usr/local/include" and the compiler isn't complaining at all about not being able to find the header file, the compiler clearly isn't recognizing the definitions of all these structures found in the header file.
Can anyone else with experience doing this lead me in the right direction?
Thank you