Re: Need help in fixing a gcc error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux