Errors when running games on linux:
liquidwar: symbol lookup error: /usr/local/lib/liballeg.so.4.2: undefined symbol: _blender_trans24
and
matrem: symbol lookup error: /usr/local/lib/liballeg.so.4.2: undefined symbol: _blender_trans24
the same error, really.
I have installed the latest allegro libraries including the dev packages.
How do I solve this?
Also, when I try to run a program I wrote in allegro I get :
Fatal error: unable to set GFX_SAFE
Shutting down Allegro due to signal #11
Segmentation fault (core dumped)
From this code:
#include <allegro.h>
int main(void) {
allegro_init();
set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
install_keyboard();
textout_ex(screen, font, "Hello World!", 1, 1, 10, -1);
textout_ex(screen, font, "Press ESCape to quit.", 1, 12, 11, -1);
while(! key[KEY_ESC]) { };
allegro_exit();
return 0;
}
END_OF_MAIN()
Please help!!!
How are you compiling and linking your program?
You need to link against `allegro-config --libs`, which is more than just the base Allegro library.
hello,
i compiling like that
cc main.c
That is how I compile the program (with `allegro-config --libs release`).
Then you are doing it wrong. Compile like this
gcc main.c -o main `allegro-config --libs`
[edit] you edited