[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] fixed: compiling img2png



On Mon, 20 Aug 2007, Guido Vollbeding wrote:

Hallo Martin

I have updated the code under http://sylvana.net/imgtools/ .
Please try this out.

I found a fix that works for me.

1. yum install compat-gcc-34
2. cd imgtools/img2png
3. edit the Makefile:  change the first line "CC=gcc" into "CC=gcc34"
4. make

Now I can compile img2png under Fedora FC7. The warning messages might give a hint on how to fix the problem also with gcc-4.1.2 ?

gcc34 -I/usr/include -I/usr/include -O2 -Wall   -c -o img2png.o img2png.c
img2png.c: In function `main':
img2png.c:112: warning: use of cast expressions as lvalues is deprecated
img2png.c:112: warning: use of cast expressions as lvalues is deprecated
img2png.c:118: warning: use of cast expressions as lvalues is deprecated
img2png.c:118: warning: use of cast expressions as lvalues is deprecated
img2png.c:118: warning: use of cast expressions as lvalues is deprecated
img2png.c:118: warning: use of cast expressions as lvalues is deprecated
img2png.c:118: warning: use of cast expressions as lvalues is deprecated
img2png.c:119: warning: use of cast expressions as lvalues is deprecated
img2png.c:119: warning: use of cast expressions as lvalues is deprecated
img2png.c:125: warning: use of cast expressions as lvalues is deprecated
img2png.c:125: warning: use of cast expressions as lvalues is deprecated
img2png.c:126: warning: use of cast expressions as lvalues is deprecated
img2png.c:126: warning: use of cast expressions as lvalues is deprecated
img2png.c:127: warning: use of cast expressions as lvalues is deprecated
img2png.c:127: warning: use of cast expressions as lvalues is deprecated
img2png.c:148: warning: use of cast expressions as lvalues is deprecated
img2png.c:148: warning: use of cast expressions as lvalues is deprecated
img2png.c:151: warning: use of cast expressions as lvalues is deprecated
img2png.c:151: warning: use of cast expressions as lvalues is deprecated
img2png.c:154: warning: use of cast expressions as lvalues is deprecated
img2png.c:154: warning: use of cast expressions as lvalues is deprecated
gcc34 -I/usr/include -I/usr/include -O2 -Wall   -c -o l3decode.o l3decode.c
gcc34 -I/usr/include -I/usr/include -O2 -Wall   -c -o true_out.o true_out.c
gcc34 -s -o img2png img2png.o l3decode.o true_out.o /usr/lib/libpng.a /usr/lib/libz.a

--

Martin Tarenskeen