Mail Archives: djgpp/1997/02/24/05:46:35
Patrick J. Morris (danalas AT postoffice DOT worldnet DOT att DOT net) wrote:
: I was trying to run some example Allegro files and it seems that I
: need to link the files with some library. I really don't know about
: that library and I don't even really know how to use RHIDE. I do
: know C/C++ and know that without this information I can't write
: anything. Please help me!!!.
The readme.txt file that comes with Allegro explains this. You need to
have unzipped Allegro expanding directory entries, and you also need
to have installed the make utility (mak375b.zip). Then, go to your
Allegro directory and type 'make'. It will take a while, but when it's
finished you should have a new file called liballeg.a. Copy/move this
file to the lib subdirectory of your DJGPP directory and put the file
allegro.h into the include subdirectory.
When you write a program that uses Allegro, you can #include <allegro.h>
in each source file that needs it, and tell RHIDE to link in the Allegro
library by going to Options/Libraries and putting 'alleg' in one of the
text boxes, making sure the box next to it is activated.
The same process that creates the library file will also compile all of
the example programs, incidentally. You'll need C++ support installed
to compile some of them.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -