www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/08/04:08:29

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: compile Allegro-test-files with RHIDE
Date: Fri, 7 Feb 1997 20:08:14 +0000
Organization: None
Distribution: world
Message-ID: <yG4vmBAuu4+yEwH3@talula.demon.co.uk>
References: <5db1g1$gr4 AT news00 DOT btx DOT dtag DOT de>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gunter Ohrner writes:
>When compiling it to an .o-file, everything works fine.
>But when I try to "MAKE" an EXE-file out of it, the compiler just says
>play.c(Linenumber) Error: undefined reference to '...'

You have to link the library file, liballeg.a, into your executable:
that's where the code for all the Allegro functions is found. In Rhide,
go to the Options/Libraries dialog, type 'alleg' into the first empty
space, and make sure the box next to it is checked. The linker might
then complain about not being able to find liballeg.a: if this happens,
copy the file from your Allegro dir into your djgpp\lib directory
(depending how recent your version of Allegro is, the Allegro makefile
might have already done this for you).

/*
 *  Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
 *  Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
 */

- Raw text -


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