www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/24/01:45:52

From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I have a newbie question about errors..
Date: Thu, 23 Jul 1998 20:54:45 +0100
Organization: Cable Online
Lines: 18
Message-ID: <35B79505.4F0A@cableol.co.uk>
References: <6p3r29$8jt$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: 194.168.5.7
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

savar2 AT my-dejanews DOT com wrote:
> 
> I know this will sound dumb to pros, but I am really new to DOS, C, and
> DJGPP. I'm using rhide, and I can compile my first little C/Allegro program
> just fine, but when I go to build all, I get "Error: undefined reference to
> 'allegro_init'" and similar messages. What's wrong? Please reply to email,
> because I don't have  a newsfeed right now and can only read via dejanews.
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


You have got to link with the liballeg.a file.  Do this by adding 
-lalleg to your compiling command line, so it looks something like this:

gcc foo.c -o foo.exe -lalleg

		Peter Allen

- Raw text -


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