[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SOS...
From: |
Paul Jarc |
Subject: |
Re: SOS... |
Date: |
Wed, 24 Oct 2001 15:13:25 -0400 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 |
"Venkatakrishnan, V" <V.Venkatakrishnan@channels.usa.xerox.com> wrote:
> but I get linking errors saying undefined references coz. the libraries are
> getting linked sequentially and a library occuring earlier in the sequence
> might be trying to refer to a function that's being linked later in the
> sequence.
When possible, it's best to reorder the libraries on the command line
to eliminate that situation.
> A man on ld gave me the switch shown below, which I think is the solution
> but I can't seem to get it working.......I tried things like....
>
> gcc register.o -L. -(-lXtlLib -lXrtlLib .....) -o TrapRegister or
> gcc register.o -L. -l(XtlLib XrtlLib.....) -o TrapRegister and a few
> more....
>
> but none of them worked......... do you now how to use this switch exactly?
> Could you please give me an example?
>
> -( archives -)
Exactly like it says:
gcc register.o -L. '-(' -lXtlLib -lXrtlLib ..... '-)' -o TrapRegister
paul
- SOS..., Venkatakrishnan, V, 2001/10/24