Mail Archives: djgpp/1996/09/23/00:36:06
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?
Gotta link the liballeg.a library with "-lalleg" at the end of your gcc
command line, like so:
gcc ex1.c -lalleg
The sample programs should come with a makefile/makefiles to
automatically compile them - when you type 'make', watch the commands
that it spits out to see how this works.
--
John M. Aldrich <fighteer AT cs DOT com>
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -