Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
SuperH Linux Math library
- 09-29-2006
- Ivan Wagner
September 29, 2006, 7:31 am

Hi all,
I'm trying to compile a small program (IIR oscillator) and want to use
atan, cos and sin functions including the math.h library. The compiler
doesn't complain about not finding the math.h file, indeed he finds it.
But:
he@so:~/codec$ sh3-linux-gcc -I /usr/sh3-linux/include codec.c
/tmp/ccUqutnQ.o: In function `main':
/tmp/ccUqutnQ.o(.text+0x180): undefined reference to `atan'
/tmp/ccUqutnQ.o(.text+0x19c): undefined reference to `cos'
/tmp/ccUqutnQ.o(.text+0x1a0): undefined reference to `sin'
collect2: ld returned 1 exit status
What's wrong?
Thank you.
Ivan.
I'm trying to compile a small program (IIR oscillator) and want to use
atan, cos and sin functions including the math.h library. The compiler
doesn't complain about not finding the math.h file, indeed he finds it.
But:
he@so:~/codec$ sh3-linux-gcc -I /usr/sh3-linux/include codec.c
/tmp/ccUqutnQ.o: In function `main':
/tmp/ccUqutnQ.o(.text+0x180): undefined reference to `atan'
/tmp/ccUqutnQ.o(.text+0x19c): undefined reference to `cos'
/tmp/ccUqutnQ.o(.text+0x1a0): undefined reference to `sin'
collect2: ld returned 1 exit status
What's wrong?
Thank you.
Ivan.
Site Timeline
- » redboot without full ecos?
- — Next thread in » Embedded Linux
-
- » how can iI use the other config file when i`m building the kernel
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » FPC Buchse gesucht
- — The site's Newest Thread. Posted in » Electronics (German)
-
- » gu10 sijalice
- — The site's Last Updated Thread. Posted in » Electronics (Croatian)
-