[AD] HELP!!! Cannot compile Allegro!

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello! Help me, please, resolve this problem with compilation of Allegro:
I can't compile 'fli.c'(see later-> (CASE 1))
and 'sound.c' (see later -> (CASE 2)) 
during 'make'(resp. 'make demo'), resp. 
'gcc -c -Wall -I. -I./include  src/fli.c'
or 
'gcc -c -Wall -I. -I./include  src/sound.c' 
in C:\DJGPP\ALLEGRO directory.

-------------------------------------------------------------------------
CASE 1 : 'make' printed:

Compiling Allegro for djgpp, optimised. Please wait...
gcc -DALLEGRO_SRC -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops -ffast-
math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/fli.o -c 
src/fli.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
src/fli.c: In function 'do_fli_256_color':
src/fli.c:319: error: invalid lvalue in increment
src/fli.c:324: error: invalid lvalue in increment
src/fli.c:325: error: invalid lvalue in increment
src/fli.c:333: error: invalid lvalue in assignment
src/fli.c:340: error: invalid lvalue in increment
src/fli.c:341: error: invalid lvalue in increment
src/fli.c:342: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_delta':
src/fli.c:364: error: invalid lvalue in increment
src/fli.c:369: error: invalid lvalue in increment
src/fli.c:379: error: invalid lvalue in increment
src/fli.c:392: error: invalid lvalue in increment
src/fli.c:393: error: invalid lvalue in increment
src/fli.c:399: error: invalid lvalue in assignment
src/fli.c:409: error: invalid lvalue in assignment
src/fli.c:411: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_color':
src/fli.c:435: error: invalid lvalue in increment
src/fli.c:440: error: invalid lvalue in increment
src/fli.c:441: error: invalid lvalue in increment
src/fli.c:449: error: invalid lvalue in assignment
src/fli.c:456: error: invalid lvalue in increment
src/fli.c:457: error: invalid lvalue in increment
src/fli.c:458: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_lc':
src/fli.c:479: error: invalid lvalue in increment
src/fli.c:480: error: invalid lvalue in increment
src/fli.c:493: error: invalid lvalue in increment
src/fli.c:499: error: invalid lvalue in increment
src/fli.c:500: error: invalid lvalue in increment
src/fli.c:506: error: invalid lvalue in assignment
src/fli.c:516: error: invalid lvalue in assignment
src/fli.c:518: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_brun':
src/fli.c:559: error: invalid lvalue in increment
src/fli.c:568: error: invalid lvalue in increment
src/fli.c:575: error: invalid lvalue in assignment
src/fli.c:584: error: invalid lvalue in assignment
src/fli.c:586: error: invalid lvalue in increment
src/fli.c:596: error: invalid lvalue in increment
src/fli.c:603: error: invalid lvalue in assignment
src/fli.c:612: error: invalid lvalue in assignment
src/fli.c:614: error: invalid lvalue in increment
src/fli.c: In function '_fli_read_header':
src/fli.c:653: error: invalid lvalue in increment
src/fli.c:654: error: invalid lvalue in increment
src/fli.c:655: error: invalid lvalue in increment
src/fli.c:656: error: invalid lvalue in increment
src/fli.c:657: error: invalid lvalue in increment
src/fli.c:658: error: invalid lvalue in increment
src/fli.c:659: error: invalid lvalue in increment
src/fli.c:660: error: invalid lvalue in increment
src/fli.c:661: error: invalid lvalue in increment
src/fli.c:662: error: invalid lvalue in increment
src/fli.c: In function '_fli_read_frame':
src/fli.c:679: error: invalid lvalue in increment
src/fli.c:680: error: invalid lvalue in increment
src/fli.c:681: error: invalid lvalue in increment
src/fli.c: In function '_fli_parse_chunk':
src/fli.c:696: error: invalid lvalue in increment
src/fli.c:697: error: invalid lvalue in increment
make.exe: *** [obj/djgpp/alleg/fli.o] Error 1

the same effect with 'gcc -c -Wall -I. -I./include  src/fli.c' 
------------------------------------------------------------------------- 

CASE 2 :
After 'gcc -c -Wall -I. -I./include  src/sound.c' 
compiler printed:
src/sound.c:53: error: static declaration of 'digi_none' follows non-static 
declaration
src/sound.c:28: error: previous declaration of 'digi_none' was here

-------------------------------------------------------------------------
-------------------------------------------------------------------------
I append list of files downloaded from 
www.delorie.com/djgpp/zip-picker.html:

file:         size(bytes):  date(m-d-y): 
UNZIP32  EXE        96,644  05-06-2005  
ALL403   ZIP     2,818,254  05-06-2005  
BNU215B  ZIP     3,508,408  05-06-2005  
CSDPMI5B ZIP        54,550  05-06-2005  
DJDEV203 ZIP     1,530,778  05-06-2005  
FAQ230B  ZIP       679,865  05-06-2005  
FIL41B   ZIP     1,738,170  05-06-2005  
GCC400B  ZIP     4,153,897  05-06-2005  
GDB611B  ZIP     1,585,648  05-06-2005  
GPP400B  ZIP     4,608,714  05-06-2005  
GRX246S  ZIP     2,137,107  05-06-2005  
MAK3791B ZIP       272,798  05-06-2005  
OBJC400B ZIP     2,738,406  05-06-2005  
PAKK023B ZIP     1,040,517  05-06-2005  
RHIDE15B ZIP     2,946,393  05-06-2005  
SED414B  ZIP       159,920  05-06-2005  
TXI48B   ZIP       796,693  05-06-2005  
---------------------------------------
        17 files    30,866,762 bytes
Thanking you in anticipation...
lemagicien@xxxxxxxxxx Content-Disposition: form-data; name="send"

Odoslať


--- reklama -----------------------------------------------------
Neviete, kam večer vyraziť?
http://kino.zoznam.sk
Hello! Help me, please, resolve this problem with compilation of Allegro:
I can't compile 'fli.c'(see later-> (CASE 1))
and 'sound.c' (see later -> (CASE 2)) 
during 'make'(resp. 'make demo'), resp. 
'gcc -c -Wall -I. -I./include  src/fli.c'
or 
'gcc -c -Wall -I. -I./include  src/sound.c' 
in C:\DJGPP\ALLEGRO directory.

-------------------------------------------------------------------------
CASE 1 : 'make' printed:

Compiling Allegro for djgpp, optimised. Please wait...
gcc -DALLEGRO_SRC -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/fli.o -c src/fli.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
src/fli.c: In function 'do_fli_256_color':
src/fli.c:319: error: invalid lvalue in increment
src/fli.c:324: error: invalid lvalue in increment
src/fli.c:325: error: invalid lvalue in increment
src/fli.c:333: error: invalid lvalue in assignment
src/fli.c:340: error: invalid lvalue in increment
src/fli.c:341: error: invalid lvalue in increment
src/fli.c:342: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_delta':
src/fli.c:364: error: invalid lvalue in increment
src/fli.c:369: error: invalid lvalue in increment
src/fli.c:379: error: invalid lvalue in increment
src/fli.c:392: error: invalid lvalue in increment
src/fli.c:393: error: invalid lvalue in increment
src/fli.c:399: error: invalid lvalue in assignment
src/fli.c:409: error: invalid lvalue in assignment
src/fli.c:411: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_color':
src/fli.c:435: error: invalid lvalue in increment
src/fli.c:440: error: invalid lvalue in increment
src/fli.c:441: error: invalid lvalue in increment
src/fli.c:449: error: invalid lvalue in assignment
src/fli.c:456: error: invalid lvalue in increment
src/fli.c:457: error: invalid lvalue in increment
src/fli.c:458: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_lc':
src/fli.c:479: error: invalid lvalue in increment
src/fli.c:480: error: invalid lvalue in increment
src/fli.c:493: error: invalid lvalue in increment
src/fli.c:499: error: invalid lvalue in increment
src/fli.c:500: error: invalid lvalue in increment
src/fli.c:506: error: invalid lvalue in assignment
src/fli.c:516: error: invalid lvalue in assignment
src/fli.c:518: error: invalid lvalue in increment
src/fli.c: In function 'do_fli_brun':
src/fli.c:559: error: invalid lvalue in increment
src/fli.c:568: error: invalid lvalue in increment
src/fli.c:575: error: invalid lvalue in assignment
src/fli.c:584: error: invalid lvalue in assignment
src/fli.c:586: error: invalid lvalue in increment
src/fli.c:596: error: invalid lvalue in increment
src/fli.c:603: error: invalid lvalue in assignment
src/fli.c:612: error: invalid lvalue in assignment
src/fli.c:614: error: invalid lvalue in increment
src/fli.c: In function '_fli_read_header':
src/fli.c:653: error: invalid lvalue in increment
src/fli.c:654: error: invalid lvalue in increment
src/fli.c:655: error: invalid lvalue in increment
src/fli.c:656: error: invalid lvalue in increment
src/fli.c:657: error: invalid lvalue in increment
src/fli.c:658: error: invalid lvalue in increment
src/fli.c:659: error: invalid lvalue in increment
src/fli.c:660: error: invalid lvalue in increment
src/fli.c:661: error: invalid lvalue in increment
src/fli.c:662: error: invalid lvalue in increment
src/fli.c: In function '_fli_read_frame':
src/fli.c:679: error: invalid lvalue in increment
src/fli.c:680: error: invalid lvalue in increment
src/fli.c:681: error: invalid lvalue in increment
src/fli.c: In function '_fli_parse_chunk':
src/fli.c:696: error: invalid lvalue in increment
src/fli.c:697: error: invalid lvalue in increment
make.exe: *** [obj/djgpp/alleg/fli.o] Error 1

the same effect with 'gcc -c -Wall -I. -I./include  src/fli.c' 
------------------------------------------------------------------------- 

CASE 2 :
After 'gcc -c -Wall -I. -I./include  src/sound.c' 
compiler printed:
src/sound.c:53: error: static declaration of 'digi_none' follows non-static declaration
src/sound.c:28: error: previous declaration of 'digi_none' was here

-------------------------------------------------------------------------
-------------------------------------------------------------------------
I append list of files downloaded from 
www.delorie.com/djgpp/zip-picker.html:

file:         size(bytes):  date(m-d-y): 
UNZIP32  EXE        96,644  05-06-2005  
ALL403   ZIP     2,818,254  05-06-2005  
BNU215B  ZIP     3,508,408  05-06-2005  
CSDPMI5B ZIP        54,550  05-06-2005  
DJDEV203 ZIP     1,530,778  05-06-2005  
FAQ230B  ZIP       679,865  05-06-2005  
FIL41B   ZIP     1,738,170  05-06-2005  
GCC400B  ZIP     4,153,897  05-06-2005  
GDB611B  ZIP     1,585,648  05-06-2005  
GPP400B  ZIP     4,608,714  05-06-2005  
GRX246S  ZIP     2,137,107  05-06-2005  
MAK3791B ZIP       272,798  05-06-2005  
OBJC400B ZIP     2,738,406  05-06-2005  
PAKK023B ZIP     1,040,517  05-06-2005  
RHIDE15B ZIP     2,946,393  05-06-2005  
SED414B  ZIP       159,920  05-06-2005  
TXI48B   ZIP       796,693  05-06-2005  
---------------------------------------
        17 files    30,866,762 bytes




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/