www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/22/23:15:26

Date: Sun, 22 Sep 1996 22:47:55 -0400 (EDT)
From: "The Leathal Mr. Wiggly" <pjenki1 AT gl DOT umbc DOT edu>
To: Takahiro Horie <takahiro AT ix DOT netcom DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Compiling Allegro Examples
In-Reply-To: <52491v$h52@dfw-ixnews3.ix.netcom.com>
Message-ID: <Pine.SGI.3.95.960922224702.15727A-100000@ela01.gl.umbc.edu>
MIME-Version: 1.0

Hey!

What you need to do is make sure that the lib file with all of the allegro
functions is included.

Try this.

gcc ex1.c -lalleg

cya,
Patrick


On 22 Sep 1996, Takahiro Horie wrote:

> Dear Allegro Gurus,
> 
> Thanks for looking at my query. I just got Allegro 2.1 and am very
> excited to start using it. I ran the demo and the examples and I was
> completely stunned! 
> Now that I am going to try to make some things myself, I tried to 
> compile the EX1.C source:
> 
>   gcc ex1.c
> 
> and the result was 13 errors:
>  
>   ex1.c(.text+0x19): undefined reference to 'allegro_init'
>   ex1.c(.text+0x1e): undefined reference to 'install_keyboard'
>                          etc...
> 
> I can tell it's a gcc invoking problem. Could you help me?
> 
> Thanks in advance,
> Takahiro (takahiro AT ix DOT netcom DOT com)
> 
> 
> 
> 
> 

     "When you park, don't drink.  Accidents cause people."  - Wise Man
-----------------------------------------------------------------------------
      Patrick L. Jenkins     |  E-Mail: pjenki1 AT gl DOT umbc DOT edu
      XSIV Software          |  WWW:    http://www.gl.umbc.edu/~pjenki1/
-----------------------------------------------------------------------------

- Raw text -


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