Mail Archives: djgpp/1996/11/09/21:13:14
From: | Jeremy Penner <pzp655 AT freenet DOT mb DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Allegro example linking??
|
Date: | Sat, 9 Nov 1996 16:08:08 -0600
|
Organization: | The University of Manitoba
|
Lines: | 25
|
Message-ID: | <Pine.SOL.3.91.961109160149.14821A-100000@winnie.freenet.mb.ca>
|
References: | <01bbcd1e$bf9beac0$LocalHost AT miller>
|
NNTP-Posting-Host: | winnie.freenet.mb.ca
|
Mime-Version: | 1.0
|
In-Reply-To: | <01bbcd1e$bf9beac0$LocalHost@miller>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
On 8 Nov 1996, Neil Miller wrote:
>
> I am trying to compile the first example for Allegro (EX1.C). I tryo to
> compile it and I get these errors while linking:
>
> EX1.cc(.text+0x19):undefined reference to 'allegro_init'
^^
You're compiling EX1.C with a capital C at the end. GCC takes this to
mean it's a C++ file. RHIDE won't let me compile with a small c at the
end, either. Is this a bug in RHIDE?
But wait, there's more!
> EX1.cc(.text+0x1e):undefined reference to 'install_keyboard'
^^^^^^^^^^^^^^^^^^^
THIS one means you haven't linked it to the Allegro library... Did you
run MAKE in the Allegro directory before attempting to compile, like it
said in README.TXT? Then, MAKE would have compiled these for you. Plus,
it would have compiled the liballeg.a file you need to link this stuff to.
Try reading the docs. It helps.
--Jeremy Penner
- Raw text -