From: "Steven Taylor" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Help using allegro.h Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Internet Primus Message-ID: <930144726.496845@diddley.primus.com.au> Cache-Post-Path: diddley.primus.com.au!unknown AT ras527 DOT ports DOT adel DOT primus DOT com DOT au X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: Wed, 23 Jun 1999 23:00:54 +0930 NNTP-Posting-Host: 203.134.0.92 X-Complaints-To: abuse AT telstra DOT net X-Trace: nsw.nnrp.telstra.net 930144723 203.134.0.92 (Wed, 23 Jun 1999 23:32:03 EST) NNTP-Posting-Date: Wed, 23 Jun 1999 23:32:03 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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. > >