Mail Archives: djgpp/1997/01/01/18:40:13
-- [ From: John Lathrop * EMC.Ver #2.5.02 ] --
> From: Daniel Boyer \ Internet: (boyer AT cs DOT sc DOT edu)
> To: DJGPP Maillist \ Internet: (djgpp AT delorie DOT com)
>
> Subject: Re: Help!!! can't make GRX20!
> ok here is what was written to make.out when I ran it in the allegro
directory:
>
> gcc -s -o demo/demo.exe obj/demo.o liballeg.a
> obj/demo.o(.text+0x105):demo.c: undefined reference to `joy_left'
> obj/demo.o(.text+0x12c):demo.c: undefined reference to `joy_right'
etc. ...
OKAY... I think I can answer this one!
"liballeg.a" should be "-lalleg".
Take a look at the info file by running "info.exe". Go to "GCC", "Invoking
Gcc", and then "Option Summary"...scan through this for the different type
of codes...and you will find -lLIBRARY...this tells you all about it.
However, it would be easier to just use the "makefile" in the allegro root
directory c:\djgpp\allegro\. Go to that directory and type make at the dos
prompt. This one makefile prepares everything.
John
John
--
****************************************************
John Lathrop
http://www.elite.net/~lathropj/
- Raw text -