[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] libjpeg
> >> > In file included from /usr/include/jpeglib.h:27,
> >> > á á á á á á á á from p_about.c:31:
> >> > /usr/include/jmorecfg.h:156: warning: empty declaration
> >> > make: *** [obj.040/p_about.o] Error 1
> >> >
> >> > The offending line is the typedef:
> >> >
> >> > /* INT16 must hold at least the values -32768..32767. */
> >> >
> >> > #ifndef XMD_H á á á á á á/* X11/xmd.h correctly defines INT16
> >> */
> >> > typedef short INT16;
> >> > #endif
> >
> > As a temporary solution I added -DXMD_H to the gcc def options
> > in the HW makefile.
>
> So this "fix" would just leave the INT16 undefined.
> I don't know the libjpeg - but does it really depend on X11 code? If so,
> there is probably an way to disable these parts of libjpeg. Did you
> executed "./configure --help" or something like that to see witch options
> are available? Maybe there is something like, for example:
> --disable-x11-stuff )
Presumably XMD_H is not declared on Mint system so it is attempting
to define INT16 with
typedef short INT16;
How is this line interpreted to give the warning "empty declaration" ?
http://www.learncpp.com/cpp-tutorial/46-typedefs/
Peter