This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Change in command line order behaviour
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: Change in command line order behaviour
- From: teunis <teunis at mauve dot computersupportcentre dot com>
- Date: Wed, 12 Nov 1997 18:52:23 -0700 (MST)
- cc: Ross Alexander <rossa at stimpy dot math dot auckland dot ac dot nz>, egcs at cygnus dot com
On Wed, 12 Nov 1997, Richard Henderson wrote:
> On Thu, Nov 13, 1997 at 09:49:24AM +1300, Ross Alexander wrote:
> > stimpy:~$ gcc test.c -lreadline -ltermcap
> >
> > stimpy:~$ gcc -lreadline -ltermcap test.c
> > /tmp/cca059941.o: In function `main':
> > /tmp/cca059941.o(.text+0x9): undefined reference to `readline'
> > collect2: ld returned 1 exit status
>
> Unix has had this behaviour since the beginning of time. Order matters
> with libraries. You must put the library -after- whatever uses it.
gcc (not ld but gcc [ld DOES have this]) has never had this problem...
until now.
It's probably a bug!
[but on another note - neither gcc 2.7.2.1 nor egcs-[some older version -
prolly 970724 or something like that]]
(this is all AFAIK...)
G'day, eh? :)
- Teunis