Joshua Parons - 2011-05-21

include <allegro.h>

int x = 10;
int y = 10;

int main() {

allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
while ( !key ){

clear_keybuf();

acquire_screen();

textout_ex( screen, font," ", x, y, makecol( 0, 0, 0), makecol( 0, 0, 0) );

if (key) --y;
else if (key) ++y;
else if (key) ++x;
else if (key) --x;

textout_ex( screen, font, "0-<", x, y, makecol( 0, 0, 0), makecol (0, 0, 0) );

clear_to_color( screen, makecol( 255, 255, 255));

putpixel( screen, 5, 5, makecol( 128, 200, 23));

circle( screen, 20, 20, 10, makecol( 255, 0, 0));
circlefill( screen, 50, 50, 25, makecol( 0,255, 0));

rect( screen, 70, 70, 90, 90, makecol (0, 0, 255));
rectfill( screen, 100, 100, 120, 120, makecol( 12, 34, 200));

line( screen, 130, 130, 150, 150, makecol( 255, 0, 0));
line( screen, 130, 130, 170, 130, makecol( 255, 0, 0));
line( screen, 170, 130, 150, 150, makecol( 255, 0, 0));

floodfill( screen, 140, 135, makecol( 255, 255, 0));

triangle (screen, 200, 200, 200, 220, 220, 210, makecol(213, 79, 40));

release_screen();

rest(50);

}

readkey();

return 0;
}
END_OF_MAIN();

i am getting linker erros. can any1 help.