[Ffmpeg-devel] Problems with preC99 compilers

Māris Nartišs maris.gis
Fri Sep 29 11:37:53 CEST 2006


Hi,

I was compiling recent GRASS GIS version but it failed on ffmpeg includes due 
to one line comments. One line comments (//) where introduced in C99, thus 
preC99 compilers do not understand them.

I have 2 questions:
1) Is C99 compiler a must for ffmpeg?
2) Will You change comments in header files to preC99 form? (I mean - do we 
need a special ffmpeg related notice/workaround for preC99 compiler users in 
GRASS or we can wait for new ffmpeg version.)

Tested on GNU/Linux x86
gcc version 4.1.2 20060920 (prerelease)
ffmpeg 3:0.cvs20060823


Please CC me, as I'm not on list.
Thanks for reading,
Maris.

Error message:
gcc -I/home/maris/soft/grass-6.2.0RC1/dist.i686-pc-linux-gnu/include  -g -ansi -Wall -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_POSIX_SOURCE=1 -D_POSIX_C_SOURCE=199506L    -fPIC    -DPACKAGE=\""grasslibs"\" -I/usr/include      -DPACKAGE=\""grasslibs"\"    -I/usr/include/ffmpeg/ -I/home/maris/soft/grass-6.2.0RC1/dist.i686-pc-linux-gnu/include 
\
                -o OBJ.i686-pc-linux-gnu/gsd_img_ppm.o -c gsd_img_ppm.c
In file included from /usr/include/ffmpeg/avutil.h:24,
                 from /usr/include/ffmpeg/avcodec.h:14,
                 from gsd_img_ppm.c:19:
/usr/include/ffmpeg/common.h:171: error: expected identifier or ?(? before ?/? 
token




More information about the ffmpeg-devel mailing list