linking libraries by gcc

John Love-Jensen
Tue Mar 28 21:24:00 GMT 2006

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.


More information about the Gcc-help mailing list