www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/01/23:12:26

Message-Id: <199701020354.TAA00847@almond.elite.net>
To: DJGPP Maillist <djgpp AT delorie DOT com>
Subject: Re: Help!!! can't make GRX20!
Date: Wed, 01 Jan 97 19:51:51 -0500
From: John Lathrop <lathropj AT elite DOT net>

-- [ From: John Lathrop * EMC.Ver #2.5.02 ] --


> >> 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".
> >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.
> 
> But, I AM using the makefile in the allegro directory... the errors above
> were
> generated by typeing make in the allegro directory!

You're correct.  Darn...I thought I had it for you.  This is from the
makefile and where your problem occurs (i think):

*/%.exe : obj/%.o liballeg.a
	gcc $(LFLAGS) -o $@ $< liballeg.a

I guess you use -lalleg when "liballeg.a" is not in the current directory. 
Hmmm I can see why this is so frustrating.  I had no problem with the
Allegro makefile.  I don't think I can help you at this time... Anybody else
?

--
****************************************************
John Lathrop

http://www.elite.net/~lathropj/

- Raw text -


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