jak zkompilovat allegro
Ivo Kocvara
xkocvara na aisa.fi.muni.cz
Pondělí Říjen 23 11:48:07 CEST 2000
Dobry den.
Stahnul jsem si z internetu knihovnu allegro pro linux s tim, ze
rozchodim svoje bajecne DOSove programy i v linuxu, jenze pri kompilaci
nastala chyba. Nejak jsem nebyl schopny dopatrat, v cem je problem (kde
jsou definovane type va_arg, va_list, apod. - nekde v hlavickach k
linuxu?). Muze mne nekdo poradit, co s tim? S kompilaci
programu/knihoven nemam moc zkusenosti, ale zatim vsechno fungovalo.
gcc je z RH7.0 (myslim 2.96?), linux je 2.4.0-test9.
Diky.
gcc -DHAVE_CONFIG_H -Iinclude -Iinclude/allegro -I./include
-I./include/allegro -I. -I/usr/X11R6/include -O3 -ffast-math
-fomit-frame-pointer -Wall -fPIC -DALLEGRO_SHARED
-c ./src/unicode.c -o obj/unix/shared/alleg/unicode.o
./src/unicode.c: In function `uvsprintf':
./src/unicode.c:2644: `short int' is promoted to `int' when passed through `...'
./src/unicode.c:2644: (so you should pass `int' not `short int' to `va_arg')
./src/unicode.c:2650: `short int' is promoted to `int' when passed through `...'
./src/unicode.c:2677: `short unsigned int' is promoted to `int' when passed through `...'
./src/unicode.c:2695: `short unsigned int' is promoted to `int' when passed through `...'
./src/unicode.c:2701: `short unsigned int' is promoted to `int' when passed through `...'
./src/unicode.c:2708: `short unsigned int' is promoted to `int' when passed through `...'
make: *** [obj/unix/shared/alleg/unicode.o] Error 1
--ivo kocvara
Další informace o konferenci Linux