![]() |
|
Allegro runtime problems? |
personjerry
Member #9,271
November 2007
|
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. Also, when I try to run a program I wrote in allegro I get : Fatal error: unable to set GFX_SAFE 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!!! |
Thomas Fjellstrom
Member #476
June 2000
![]() |
How are you compiling and linking your program? -- |
Matthew Leverton
Supreme Loser
January 1999
![]() |
You need to link against `allegro-config --libs`, which is more than just the base Allegro library. |
ballout merouen
Member #9,637
March 2008
|
hello, cc main.c |
personjerry
Member #9,271
November 2007
|
That is how I compile the program (with `allegro-config --libs release`). |
kazzmir
Member #1,786
December 2001
![]() |
Then you are doing it wrong. Compile like this gcc main.c -o main `allegro-config --libs` [edit] you edited |
|