Mail Archives: djgpp/1997/02/17/22:42:19
From: | "John M. Aldrich" <fighteer AT cs DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: DJGPP HELP!!!
|
Date: | Mon, 17 Feb 1997 20:34:20 -0800
|
Organization: | Two pounds of chaos and a pinch of salt
|
Lines: | 31
|
Message-ID: | <3309314C.605A@cs.com>
|
References: | <01bc1de5$9f413ba0$0100007f AT default>
|
Reply-To: | fighteer AT cs DOT com
|
NNTP-Posting-Host: | ppp204.cs.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Eclipse wrote:
>
> When I downloaded the Allegro source code and tried compiling it, I got the
> messages.
> In the C:\ALLEGRO directory I typed this, gcc -o ex1.exe ex1.c
>
> c:/djgpp/tmp\ccdaaaa(.text + 0x19):ex1.c:undefined reference to
> 'allegro_init'
> c:/djgpp/tmp\ccdaaaa(.text + 0x1e):ex1.c:undefined reference to
> 'install_keyboard'
You have to link the Allegro library when you compile. Add '-lalleg' to
the END of your command line and it'll work fine. BTW, this is in the
Allegro docs, the DJGPP FAQ, the DJGPP 'readme.1st', the RHIDE docs,
etc., etc., etc.
> echo off
> set DJGPP=C:\DJGPP\DJGPP.ENV
> PATH C:\DJGPP\BIN;C:\COMMAND;C:\DOS;c:\isp16
> cd\djgpp
This is okay, but you really should add it to AUTOEXEC.BAT. There's no
good reason not to. :)
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -