A seemingly simple problem
Posted: Mon Mar 06, 2006 5:31 am
I see under ps2dev/ee/ee/include that there is a math.h file, but when I include this and try to use the sin and cos functions I get this error.
I'm new to the ps2 and all I am making is a simple rotating hypnotic spiral. Any ideas why the functions won't work?
Code: Select all
obj/spiral.o(.text+0x90): In function `spiral':
spiral.c: undefined reference to `litodp'
obj/spiral.o(.text+0x98):spiral.c: undefined reference to `cos'
obj/spiral.o(.text+0xa0):spiral.c: undefined reference to `dptofp'
obj/spiral.o(.text+0xac):spiral.c: undefined reference to `litodp'
obj/spiral.o(.text+0xb4):spiral.c: undefined reference to `sin'
obj/spiral.o(.text+0xbc):spiral.c: undefined reference to `dptofp'
collect2: ld returned 1 exit status
make: *** [spiral.elf] Error 1