Just a thought on this - there probably is a linker option (that is, for ld) for this. I would recommend taking a look at ld's command line options and pass the appropriate option to it though g++ using the -Wl option. Thanks, Lyle -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of David Kramer Sent: Thursday, September 09, 2004 12:52 PM To: gcc-help@xxxxxxxxxxx Subject: GNU g++ / AIX ld question <SNIP> I can't seem to find a comparable g++ option to not link in objects that are not referenced, and that means when I link my application against tccommon, it's claiming that the status class methods are undefined, even though nothing the application is using from tccommon uses the status class.