|
From: <em...@te...> - 2001-01-23 19:04:32
|
Ok, this isn't a DJGPP list, but I have some experience with it.
Mainly, make sure that you select the option -lalleg in the
options(or it may be libraries screen) screen of Rhide, and make
sure it is checked.
Also, to install allegro make sure to extract it to the same directory
as your DJGPP root, it will create it's own sub folders, then switch
to the Allegro root, and run make. Then I think on some systems
you need to run make install also. :)
On 22 Jan 2001, at 22:22, Stein Nygaard wrote:
> 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
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|