#8319 - dchartier - Tue Jul 08, 2003 5:34 am
The title says it all: My linker can't find the implementations for sin() and cos(). I run gcc with the parameters:
gcc sketch.c sketch.elf -I <include-dir>
I've installed the DevKit Advance from http://devkitadv.sourceforge.net/download.html with the following modules:
- core
- binutils
- gcc
- newlib
Under devkitadv\lib\gcc-lib\arm-agb-elf\3.0.2, I find libgcc.a, but an "nm" on this file finds neither sin() nor cos(). The only place I could find such implementations was in devkitadv\arm-agb-elf\lib\libm.a, but I can't get gcc to link to this library. I figure that I must be doing something wrong.
Can anyone tell me what I need to do to get this project to link?
Thanks!
gcc sketch.c sketch.elf -I <include-dir>
I've installed the DevKit Advance from http://devkitadv.sourceforge.net/download.html with the following modules:
- core
- binutils
- gcc
- newlib
Under devkitadv\lib\gcc-lib\arm-agb-elf\3.0.2, I find libgcc.a, but an "nm" on this file finds neither sin() nor cos(). The only place I could find such implementations was in devkitadv\arm-agb-elf\lib\libm.a, but I can't get gcc to link to this library. I figure that I must be doing something wrong.
Can anyone tell me what I need to do to get this project to link?
Thanks!