The functions (that gcc said undefined reference to) are defined in lib2.a. They are called by lib1.a. Kevin -----Original Message----- From: John Love-Jensen [mailto:eljay@xxxxxxxxx] Sent: Tuesday, March 28, 2006 1:16 PM To: Kevin Ma; MSX to GCC Subject: Re: linking libraries by gcc Hi Kevin, In which file (main.o, lib1.a, lib2.a, other) do the missing functions reside? --Eljay