- To: geezers <fastsnip-gcc@xxxxxxxxx>
- Subject: Re: missing libraries under Kubuntu 12.04, 64 bit
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Mon, 04 Jun 2012 16:26:13 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <33959724.post@talk.nabble.com> (geezers's message of "Mon, 4 Jun 2012 11:28:33 -0700 (PDT)")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
geezers <fastsnip-gcc@xxxxxxxxx> writes:
> Sorry my mistake: The original makefile read:
>
> $(CC) -o $@ -ldl -rdynamic $(OBJS)
>
> and that was changed to read:
>
> $(CC) -o $@ -rdynamic $(OBJS) -ldl
OK, that makes me more sense. It is always correct to put the -l option
after the objects that refer to it, and never correct to put the -l
option first. The relative order of -l options and object files
matters. Putting -ldl before the object files was probably working for
you only by accident.
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]