Saturday, November 26, 2005
gcc4 dropping obsolete things
The following expressing is no longer valid in gcc4 (at least gcc-4.0.2)
char argv[][]
The correct way is,
char **argv
Problem discovered when "emerge libdv"
In file included from dv.c:50:
quant.h:30: error: array type has incomplete element type
dv.c: In function 'dv_decode_macroblock':
dv.c:224: error: type of formal parameter 5 is incomplete
dv.c: In function 'dv_decode_video_segment':
dv.c:256: error: type of formal parameter 5 is incomplete
make[3]: *** [dv.lo] Error 1
char argv[][]
The correct way is,
char **argv
Problem discovered when "emerge libdv"
In file included from dv.c:50:
quant.h:30: error: array type has incomplete element type
dv.c: In function 'dv_decode_macroblock':
dv.c:224: error: type of formal parameter 5 is incomplete
dv.c: In function 'dv_decode_video_segment':
dv.c:256: error: type of formal parameter 5 is incomplete
make[3]: *** [dv.lo] Error 1