Hi -

        I'm having a bit of trouble compiling the lavtools/png2yuv program and
        it's a bit of a puzzle what to look at next.

        If I use gcc 2.95.3 I get this:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -DG_LOG_DOMAIN=\"lavtools\" 
-DLAVPLAY_VERSION=\"1.7.0\" -I/usr/include -I/usr/local/include 
-I/usr/contrib/lib/glib/include -I/usr/contrib/include -I/usr/local/include -I 
/packages/mjpegtools-cvs/../quicktime4linux-1.4 -I/usr/X11R6/include -I 
/usr/X11R6/include -I../utils  -I/usr/contrib/lib/glib/include -I/usr/contrib/include 
-I/usr/X11R6/include -I/packages/mjpegtools-cvs/../jpeg-mmx    -mcpu=i686 -march=i386 
-g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wcast-align -Wwrite-strings -Wcast-qual -c `test -f png2yuv.c || echo './'`png2yuv.c
png2yuv.c:251: warning: no previous prototype for `png_separation'
png2yuv.c:305: warning: no previous prototype for `decode_png'
png2yuv.c: In function `decode_png':
png2yuv.c:364: syntax error before `int'
png2yuv.c:366: `bit_depth' undeclared (first use in this function)
png2yuv.c:366: (Each undeclared identifier is reported only once
png2yuv.c:366: for each function it appears in.)
png2yuv.c:368: `color_type' undeclared (first use in this function)
png2yuv.c:369: `num_pass' undeclared (first use in this function)

        But if I use gcc-3.1 (which I happen to have around) the program
        png2yuv compiles OK.

        Usually it's the other way around - gcc 3.x gives errors on files which
        compile fine with 2.95.x

        I did add the 'prototypes' for png_separation and decode_png which 
        eliminated the warning messages but the "364: syntax error' message
        still comes out.

        Line 364 is:

          int num_pass = 1; 

        What's a good next step to try?

        Cheers,
        Steven Schultz


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to