delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/14/00:54:38

From: "John M. Aldrich" <fighteer AT NO DOT SPAM DOT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro : compiling problem with simple file
Date: Sun, 13 Apr 1997 10:15:00 -0700
Organization: Two pounds of chaos and a pinch of salt
Lines: 15
Message-ID: <33511494.6D4B@NO.SPAM.cs.com>
References: <01bc4882$ce773b00$7e708ea1 AT a>
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

LSC wrote:
> 
> C:\CProgram>gcc test.c -o test.exe
> c:/djgpp/tmp\ccdaaaaa(.text+0xc):test.c: undefined reference to
> `allegro_init'

The compiler doesn't know to link in the Allegro library unless you put
'-lalleg' on the command line.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |     mailto:fighteer AT cs DOT com      |
| Descent 2: The Infinite Abyss - The greatest Internet game of all |
| time just got better!  This time, you're going all the way down...|
---------------------------------------------------------------------

- Raw text -


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