Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro runtime problems?

This thread is locked; no one can reply to it. rss feed Print
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.
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!!!

Thomas Fjellstrom
Member #476
June 2000
avatar

How are you compiling and linking your program?

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Matthew Leverton
Supreme Loser
January 1999
avatar

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,
i compiling like that

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
avatar

Then you are doing it wrong. Compile like this

gcc main.c -o main `allegro-config --libs`

[edit] you edited

Go to: