This is the mail archive of the gcc@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]

Re: Linking against unused functions


Rob Emanuele wrote:-

> With optimizations turned on my program compiles.  With them off
> I get many "undefined references".  I'd like to compile my debug
> versions with little to no optimizations.  How can I make the
> linker not link against unused functions?

For a start, you need to give a simple reproducable example.

Neil.


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