Allegro compilation error

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Skywriter
Posts: 36
Joined: Jan 05, 2009 19:46
Location: Lithuania. Europe

Allegro compilation error

Postby Skywriter » Jan 05, 2009 19:56

Hi, i'm getting error like this while attempting to compile allegro code under linux ubuntu. Can someone help me to figure out what this means...
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib//liballeg.a(xwin.o): In function `_xwin_hide_x_mouse':
(.text+0xe2): undefined reference to `XcursorImageDestroy'

This is the code causing errors:

#include "allegro.bi" 'tell FreeBASIC you want to use Allegro
allegro_init() 'wake up Allegro
set_color_depth(16)
set_gfx_mode(GFX_AUTODETECT_WINDOWED,800,600,0,0)
install_keyboard

do
'your game code here
loop until key(KEY_ESC)

remove_keyboard
END_OF_MAIN()

i've used cmd line : fbc allegro.bas
jofers
Posts: 1525
Joined: May 27, 2005 17:18
Contact:

Postby jofers » Feb 07, 2009 20:00

I got the same problem you did, but you just need to link to a few more libraries when you compile. When I compiled your code like this:

Code: Select all

fbc test.bas -l alleg -l Xxf86vm -l Xcursor

It worked.
roook_ph
Posts: 402
Joined: Apr 01, 2006 20:50
Location: philippines
Contact:

avoid allegro

Postby roook_ph » Mar 20, 2009 10:23

Allegro doesnt work on puppy linux too There are a lot of libraries out there avoid this one. Its problematic if you are using linux. But DOS and Window$ seems ok.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest