[+] biblioteka allegro
: 02 kwietnia 2008, 00:46
Mam do napisania projekt w C i chciałbym go zrobić pod linuksem, jednak mam problem z odpaleniem biblioteki allegro. Nie wiem czy to ma związek z tym, ale wydaje mi się, że może mieć. Podczas instalacji dostałem taki komunikat :
Przy kompilowaniu programu z użyciem allegro dostaję komunikat :
Kod programu jest banalny, wygląda tak :
Macie jakiś pomysł? Bo muszę się brać za ten projekt, a nie chce mi się przesiadać na windowsa ;/
Kod: Zaznacz cały
Warning: shared library destination /usr/local/lib is not in ldd search path.
Unless you add it to /etc/ld.so.conf, you must set LD_LIBRARY_PATH to include
/usr/local/lib each time you want to run an Allegro program.
/bin/sh ./misc/mkdirs.sh /usr/local/share/aclocal
mkdir /usr/local/share/aclocal
Installing allegro.m4 to /usr/local/share/aclocal
Kod: Zaznacz cały
/tmp/ccQ3evZp.o: In function `main':
test2.c :( .text+0x32): undefined reference to `_install_allegro_version_check'
test2.c :( .text+0x37): undefined reference to `allegro_exit'
collect2: ld returned 1 exit status
Kod: Zaznacz cały
#include <allegro.h>
int main()
{
allegro_init();
allegro_exit();
return 0;
}
END_OF_MAIN();