From: Allens 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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