This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Linking against unused functions
- To: "Gcc" <gcc at gcc dot gnu dot org>
- Subject: Linking against unused functions
- From: "Rob Emanuele" <rje at cyan dot com>
- Date: Mon, 5 Mar 2001 18:14:34 -0800
I'm working with MS Visual C++ and GCC (2.95 under IRIX and
Linux). Under Visual C++ my compilations work optimized or not.
Under Gcc, not so much.
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?
Thank you,
Rob Emanuele