[Flac-dev] need help with MSVC

Erik de Castro Lopo erikd-flac at mega-nerd.com
Mon Feb 5 20:19:23 PST 2007


Josh Coalson wrote:

> 2nd, I need an equivalent for lround() (or round() is ok), which
> is not in MSVC6's math.h or anywhere else I could find.

I've just updated from CVS and noticed that you are using lround()
but when I compile I get:

    lpc.c: In function 'FLAC__lpc_quantize_coefficients':
    lpc.c:205: warning: implicit declaration of function 'lround'
    lpc.c:205: warning: incompatible implicit declaration of built-in function 'lround'
    lpc.c:240: warning: incompatible implicit declaration of built-in function 'lround'

The lround funtion is part of C99 and to enable it with gcc you need
-std=c99 or -std=gnu99 on the as part of the gcc commandline. 

Hope this helps,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"There is no satisfactory substitute for excellence."
-- Dr. Arnold O. Beckman


More information about the Flac-dev mailing list