From: Chuck R. <shi...@ro...> - 2007-12-21 23:36:54
|
Hi Dave, Thanks for pointing me to --std=gnu99. This changes the scenario a bit: ffmpeg.c:118: error: initializer element is not constant Here is ffmpeg.c:118: static AVRational frame_rate = (AVRational) {25,1}; And here is the definition of AVRational, rational.h:33: /** * Rational number num/den. */ typedef struct AVRational{ int num; ///< numerator int den; ///< denominator } AVRational; I don't understand the error. Aren't 25 and 1 constants? Or is it complaining that AVRational is a struct? Chuck On Dec 20, 2007, at 9:08 PM, Dave Hylands wrote: > Hi Chuck, > > On Dec 20, 2007 6:51 PM, Chuck Randall <shi...@ro...> > wrote: >> Thanks, David, that seems to have me gotten past that hurdle. And >> now, on to another one! >> >> Where or how does one enable "asm" variables in a gumstix build? >> >> I'm compiling ffmpeg with -std=c99. Shouldn't C99 "know" about asm >> variables? > > No. asm is a gnu specific extension and not part of C99. > > __asm__ is valid all of the time. > asm is only valid when gnu extensions are enabled. > > You can use --std=gnu99 to get C99 + gnu extensions. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > |