gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > strange build error in function 'mulf32'...

#170538 - SatNav - Thu Oct 01, 2009 10:52 am

Hi,

I just started looking at a project I began ages ago then left by the wayside for a while. After reinstalling all the devkitpro stuff, and attempting a recompile, I get this:
Code:
mark@pegasus:~/Dev/Console/NDS/cube4$ make
linking cube4.elf
main.o: In function `mulf32':
/etc/devkitpro/libnds/include/nds/arm9/math.h:122: undefined reference to `TAN_bin'
collect2: ld returned 1 exit status
make[1]: *** [/data/Dev/Console/NDS/cube4/cube4.elf] Error 1
make: *** [build] Error 2


Any quick ideas on what my problem might be? one thing that sticks out for me is that reference to /etc/devkitpro, since my devkitpro is installed in /opt, but that's the only thing I can see.

Any thoughts appreciated.
Cheers,
Mark.

#170541 - Drovor - Thu Oct 01, 2009 12:54 pm

This might be a long shot but.... did you run a make clean before trying to build with the upgraded devkitARM/libnds?

#170543 - ritz - Thu Oct 01, 2009 2:48 pm

It could be due to the change in libnds since devkitARM r24. Trig stuff is done a little differently, it uses sin/cosLerp() funcs now. You can refer to updated libnds examples. Then again, your problem might be unrelated to this.