www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/15/16:54:27

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP!!!
Date: 15 Feb 1997 18:19:25 GMT
Organization: Oxford University
Lines: 20
Message-ID: <5e4und$gnr@news.ox.ac.uk>
References: <3305E441 DOT 223A AT cs DOT umu DOT se>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Henrik Magnusson (ens95hmn AT cs DOT umu DOT se) wrote:
: HEllo I´m a beginner in the DJGPP-world and can´t get my allegro routines to work
: I keep getting the error message: undefined reference to 'allegro_init'

: If anybody outthere can help me I would be very thankful

You need to link in the Allegro library. You are obviously correctly using
#include <allegro.h>, but you also need to put -lalleg on the gcc command line
at the linking stage. If you only run gcc once to compile and link, put it on
the end of this line. If you run gcc a few times, with the -c parameter, and
then once to link together all the object files, put it on the end of this
line instead.

If you're using RHIDE, go to Options->Linker (I think), and you should get an
array of text boxes; put 'alleg' in the highest empty box, make sure there's
an X in the box next to it, and press OK.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019