Re: Small "syntax" issue with xlc compiler and version 1.5.28
John Bowler <[email protected]>
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <CAP7U398dBw=uD+v9uMFy1ct7a86A+_n-F7G2Z9Co05iZ3u+Agw@mail.gmail.com> |
On Thu, Jan 12, 2017 at 5:50 AM, Michael Felt <[email protected]> wrote: > "../src/libpng-1.5.28/contrib/libtests/pngvalid.c", line 7746.1: > 1506-191 (E) The character # is not a valid C source character. > - that->pm->limit += pow( > -# if DIGITIZE > - 2.0 > -# else > - 1.0 > -# endif > - /255, data.gamma); > + that->pm->limit += pow( 2.0/255, data.gamma); > +#if DIGITIZE > + that->pm->limit += pow( 2.0/255, data.gamma); > +# else > + that->pm->limit += pow( 1.0/255, data.gamma); > +# endif > } > } You need to have a C compiler that complies with ISO-C90 ("ANSI C"). Try options to turn on compliance (it would be -ansi or something like that for GCC). The problem seems to be that it doesn't do the pre-processor stage in a way that either compiles with ISO-C or, for that matter, with the legacy (K&R) implementation. -- John Bowler <[email protected]> +1 (541) 450-9885 PO BOX 3151 KERBY OR 97531-3151 USA ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi