Witam. Mam problem z instalacją allegro. Ściągam biblioteke, wchodzę do folderu "include" zaznaczam wszystkie pliki i kopiuje do folderu include w Dev-C++ 4.9.2.
No i wydaje mi się że wina tkwi w instalacji skoro nie moge skomilować prostego programu, np. tego typu:
#include <allegro.h>
int main()
{
allegro_init();
install_keyboard();
set_color_depth(8);
set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
set_palette(default_palette);
clear_to_color(screen,15);
text_mode(-1);
textout(screen,font,"Yoo Allegro !!! :D",20,20,1);
readkey();
allegro_exit();
return 0;
}
END_OF_MAIN()
Log kompilacji tego programu to:
27 błędów!
Kompilator: Default compiler
Wykonywanie g++.exe...
g++.exe "F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp" -o "F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.exe" -I"F:\CPP\lib\gcc\mingw32\3.4.2\include" -I"F:\CPP\include\c++\3.4.2\backward" -I"F:\CPP\include\c++\3.4.2\mingw32" -I"F:\CPP\include\c++\3.4.2" -I"F:\CPP\include" -L"F:\CPP\lib"
In file included from F:/CPP/include/allegro/internal/alconfig.h:40,
from F:/CPP/include/allegro/base.h:40,
from F:/CPP/include/allegro.h:25,
from F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:1:
F:/CPP/include/allegro/platform/aldjgpp.h:20:19: pc.h: No such file or directory
F:/CPP/include/allegro/platform/aldjgpp.h:22:21: dpmi.h: No such file or directory
F:/CPP/include/allegro/platform/aldjgpp.h:23:21: go32.h: No such file or directory
F:/CPP/include/allegro/platform/aldjgpp.h:26:27: sys/farptr.h: No such file or directory
In file included from F:/CPP/include/allegro/draw.h:66,
from F:/CPP/include/allegro.h:40,
from F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:1:
F:/CPP/include/allegro/inline/draw.inl: In function `void _putpixel(BITMAP*, int, int, int)':
F:/CPP/include/allegro/inline/draw.inl:413: error: `_farsetsel' undeclared (first use this function)
F:/CPP/include/allegro/inline/draw.inl:413: error: (Each undeclared identifier is reported only once for each function it appears in.)
F:/CPP/include/allegro/inline/draw.inl:413: error: `_farnspokeb' undeclared (first use this function)
...
//////q: ciach..
...
F:/CPP/include/allegro/inline/draw.inl:524: error: `_farnspeekl' undeclared (first use this function)
In file included from F:/CPP/include/allegro.h:77,
from F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:1:
F:/CPP/include/allegro/platform/aldos.h: In function `void _set_color(int, const RGB*)':
F:/CPP/include/allegro/platform/aldos.h:265: error: `outportb' undeclared (first use this function)
F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp: In function `int main()':
F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:11: warning: `text_mode' is deprecated (declared at F:/CPP/include/allegro/alcompat.h:155)
F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:11: warning: `text_mode' is deprecated (declared at F:/CPP/include/allegro/alcompat.h:155)
F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:12: warning: `textout' is deprecated (declared at F:/CPP/include/allegro/alcompat.h:157)
F:\-=MAKE_GAME=-\TUTORIALE\Allegro\lazik.cpp:12: warning: `textout' is deprecated (declared at F:/CPP/include/allegro/alcompat.h:157)
Wykonanie zakończone
Proszę o pomoc i wyruzomiałość. I teraz drugie pyatnie. Która bibliotek jest według was lepsza, Allegro czy SDL. Ja już w zasadzie wybrałem to drugie ale chętnie oblukam Allegro, w SPACJA końcu jeszcze nie zacząłem kodzić w SDLu a zasmakować :-) Allegro nie szkodzi, może mi się spodoba i jednak będe programował w nim :>
Dzięki