remove unused symbol and function

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

 



Hello,

A function (say foo1) in an object file calls a library function (say foo2). The library does not exist on the system.
foo1 is not called in the target that I am building. But the GCC gives me an error that
undefined reference to foo2 while linking?


Is there a way to avoid linking unused symbols?

Weijun.



[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