Mail Archives: djgpp/1999/06/23/10:02:09
OK, sounds like you're using RHIDE. Good. You DON'T put Allegro.h as part of
your project. These are the steps:
1. Put this line in before main():
#include <allegro.h>
2. In RHIDE, go to Options->Libraries. Add the word alleg to the list and
make sure you check the box next to it.
For all this to work of course, you need liballeg.a copied into your
\djgpp\lib directory and allegro.h copied into your \djgpp\include
directory.
Please tell me how you go.
> I am trying to compile a simple example graphics program using
Allegro.
> The example program is Ex1.c, found in djgpp\allegro\examples. I create a
> new project, and include both files. The Ex1.c compiles fine, with no
> errors, but when I go to compile allegro.h, the compiler returns an error
> saying: "Don't know how to build allegro.o from allegro.h"
> Is the compiler even supposed to produce an object file for allegro.h?
> When I go to link it, the compiler returns the following error: "Error:
> gcc.exe: allegro.o: No such file or directory (ENOENT)"
> Any help would be appreciated. Thanks.
>
>
- Raw text -