Dagobert Michelsen wrote: > There compilation on Solaris 10 Sparc with Sun Studio 12 gives the following > compile errors: > > > CC bitreader.lo > > "bitreader.c", line 494: warning: implicit function declaration: MIN > > CC bitwriter.lo > > "bitwriter.c", line 273: reference to static identifier "bitwriter_grow_" > > in extern inline function > > "bitwriter.c", line 277: warning: implicit function declaration: MIN > > "bitwriter.c", line 316: reference to static identifier "bitwriter_grow_" > > in extern inline function > > cc: acomp failed for bitwriter.c > > gmake[4]: *** [bitwriter.lo] Error 1 > > Either bitwriter_grow_ can be made non-static or FLAC__bitwriter_write_zeroes > not inline or > also static to work around this. > > The attached patch fixes the issue.
Not sure about this patch. Can you please make sure that your C compiler is in the C99 mode and you have optimisation turned on and try again. >From my reading the ISO C99 spec, this code should compile with a C99 compliant compiler. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev