: Re: [MPlayer-dev-eng] Patch for gcc 3.4 against MPlayer-1.0pre5

Martin Simmons vyslnqaaxytp at spammotel.com
Fri Sep 3 01:55:56 CEST 2004


>>>>> On Thu, 2 Sep 2004 12:40:33 +0200, Torinthiel <torinthiel at megapolis.pl> said:

> also, can somebody explain me this?
> kraken:~/tmp/test$ cat test.c
> #include <stdio.h>
> #include <fenv.h>
> int main(void)
> {
>   fesetround(FE_TONEAREST);
>   printf("TONEAREST: %f %f\n", round(0.5), round(-0.5));
>   return 0;
> }
> kraken:~/tmp/test$ gcc --version
> 2.95.4
> kraken:~/tmp/test$ gcc -o test test.c -lm
> kraken:~/tmp/test$ ./test
> TONEAREST: -1.000000 2.085267

Compile with -Wall to see that nothing declares round().  E.g. add

double round(double x);

I can't find a working header file definition for this in /usr/include.

__Martin




More information about the MPlayer-dev-eng mailing list