Problem of C program include "math.h"
Aleix Conchillo Flaqué
aconchillo at ieec.fcr.es
Fri Mar 3 08:47:37 UTC 2006
Hi,
this code works fine for me,
int
main (void)
{
float f = sin (0);
}
I use sparc-rtems4.6.1-gcc:
sparc-rtems4.6.1-gcc example.c -lm
If you run sparc-rtems4.6.1-objdump, the sin code is successfuly
generated.
Which toolchain version are you using? How did you build it?
Regards,
aleix
On 02 Mar 2006, at 11:28, willisfield wrote:
>
> Hi,all!
> I include "math.h" in a my C program but the sparc-rtems-gcc
> compiler doesn't recognize some of the functions such as "sin()".
> In gcc, I have hear of the option "-lm" works, but the sparc-rtems-
> gcc doesn't work.
> Can you give me some hints, thanks very much!
> Best regards
> willisfield
>
More information about the users
mailing list