This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
remove unused symbol and function
- From: Weijun Zhu <zhuw at ucla dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 06 Aug 2004 11:39:38 -0700
- Subject: remove unused symbol and function
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.