03-20-2005, 12:43 AM
Hi, I'm new here, but I need some help. I'm trying to use Allegro in my program, and to keep everything neat, I have a series of wrapper subs like "DrawText(txt as string, x as integer, y as integer)'
Anyway, due to the setup of my program, I use a Makefile which compiles each .bas file into a .o file, then links 'em together. It compile the source fine, but when it links, it gives me this error:
I read somewhere that the "fake" part means that it can't find a library to link in with it, but it's included and everything. I have another program that works fine compiling and linking with allegro, so I have no clue what's wrong... help?
Anyway, due to the setup of my program, I use a Makefile which compiles each .bas file into a .o file, then links 'em together. It compile the source fine, but when it links, it gives me this error:
Code:
c:\temp\freebasic\fbc -x game.exe new-game.o graphics.o
graphics.o(.text+0x57):fake: undefined reference to `install_allegro'
graphics.o(.text+0x61):fake: undefined reference to `set_color_depth'
graphics.o(.text+0x79):fake: undefined reference to `set_gfx_mode'
graphics.o(.text+0x81):fake: undefined reference to `install_keyboard'
graphics.o(.text+0x91):fake: undefined reference to `install_sound'
graphics.o(.text+0xb7):fake: undefined reference to `vsync'
graphics.o(.text+0xdd):fake: undefined reference to `acquire_bitmap'
graphics.o(.text+0xfd):fake: undefined reference to `release_bitmap'
graphics.o(.text+0x139):fake: undefined reference to `textout'
graphics.o(.text+0x158):fake: undefined reference to `_imp__font'
graphics.o(.text+0x2cb):fake: undefined reference to `set_palette'
I read somewhere that the "fake" part means that it can't find a library to link in with it, but it's included and everything. I have another program that works fine compiling and linking with allegro, so I have no clue what's wrong... help?