[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Order of linking libraries
From: |
Eli Zaretskii |
Subject: |
Re: Order of linking libraries |
Date: |
Wed, 11 Jul 2007 22:21:43 +0300 |
> Date: Wed, 11 Jul 2007 18:33:35 +0530
> From: "Satish S" <address@hidden>
>
> I am having a sort of circular dependencies across libraries., with extern
> params on both the libs. I am linking with gcc and not ld. I belive gcc
> internally uses ld for linking. correct me if i am wrong.
>
> the option -( <archive> -) did not work for gcc. Is there any other way for
> going around this?
You need to tell GCC to pass the option to the linker:
-Wl,-( ... -Wl,-)
(untested).