|
From: Stein N. <tem...@of...> - 2001-01-22 21:21:44
|
Hi there... Please help me!! I'm dieing for this!
I've just downloaded DJGPP, and the Allegro. When i open the Rhide and try to
compile the following code, it's says "OK". But, when i select "run", it's
goes wild with all kinds of error-messages.
Here's the code;
------------------------------------------------------------------------------
------
#include <stdio.h>
#include <stdlib.h>
#include "allegro.h"
int main(void)
{
allegro_init();
istall_keyboard();
set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
set_palette(desktop_pallete);
textout_centre(screen, font, "Hello, world!", SCREEN_W/2, SCREEN_H/2, 255);
readkey();
return 0;
}
------------------------------------------------------------------------------
------
And... here's all those wierd error-messages;
Compilling: ex1copy.c
no errors
Creating: ex1copy.exe
Error: ex1copy.o: In function 'main':
ex1copy.c(8) Error: undefined reference to 'allegro_init'
..and it goes on like that, with all the other functions, and then;
Error: collect2: ld returned 1 exit status
There were some errors
...yea, I'll say!?
Well, I really would apreciate it if anyone could help me, since I'm all new
to DJGPP/Allegro/Rhide!
Thanks :-)
-------------
#define stone
|