This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: linking libraries by gcc
- From: John Love-Jensen <eljay at adobe dot com>
- To: Kevin Ma <kevin dot ma at globalipsound dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 28 Mar 2006 15:24:41 -0600
- Subject: Re: linking libraries by gcc
Hi Kevin,
> The functions (that gcc said undefined reference to) are defined in lib2.a.
> They are called by lib1.a.
Hmmm. Then the linker should be able to find them. Very strange.
Can you do a nm on lib1.a and lib2.a to verify that the missing symbols are
'U' in lib1.a and 'T' in lib2.a.
Thanks,
--Eljay