Duplicate Symbol

Ian Lance Taylor iant@google.com
Tue Feb 9 00:29:00 GMT 2010


"Vardhan, Sundara (GE Infra, Energy)" <sundara.vardhan@ge.com> writes:

> Compiling using GCC 4.4.3 and linking using AIX ld, I get some duplicate
> symbol warnings. Upon debugging further I see that they are defined in
> libgcc_s.a and also in libgcc.a. 
> Should we have both of these library directories?

It is normal to have both, yes.  The situation on AIX is uncommon.
Normally linking against -lgcc_s and -lgcc is fine, and is done
because there are a few objects which are put in -lgcc but not in
-lgcc_s.  I'm not sure how this is supposed to work on AIX.

Ian



More information about the Gcc-help mailing list