This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]