Hi ying lcs, > I suspect that when I compile TestGtkEmbed, i am not linking against > A.o and that results in the 'undefined reference to `A::getA()' that > i saw. > Is that right? You are correct. You are not linking against A.o, you are only linking against TestGtkEmbed.o (and a lot of libraries, some of them more than once). > If yes, can you please tell me how to fix it? Add A.o to the link line. HTH, --Eljay