libogc: (wii) gu.c:(.text.guPerspective+0x44): undefined ref
Posted: Sat Mar 01, 2008 4:06 am
guPerspective works fine for GameCube projects, but as soon as you switch it to a Wii project makefile you get this:
My simple test case was to take the "template" Wii example project and add this:
Code: Select all
E:\devkitPro\examples\wii\template>make
template.c
linking ... template.elf
e:/devkitPro/libogc/lib/wii\libogc.a(gu.o): In function `guPerspective':
gu.c:(.text.guPerspective+0x44): undefined reference to `tanf'
collect2: ld returned 1 exit status
make[1]: *** [/e/devkitPro/examples/wii/template/template.elf] Error 1
make: *** [build] Error 2
Code: Select all
Mtx projection;
guPerspective(projection, 60, 1.33F, 10.0F, 300.0F);