This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Link Problems with gcc/g++ 3.1.1 on AIX 4.3.3
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Frank dot Seehase at pdv-FS dot de
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 03 Aug 2002 23:55:34 -0400
- Subject: Re: Link Problems with gcc/g++ 3.1.1 on AIX 4.3.3
- References: <E8CDBCCCB3158347AC15ADEBFB24A84F0A8E42@fsexchng.pdv-Online.de>
>>>>> Frank writes:
Frank> When linking an executable, not referenced objects
Frank> from libraries are pulled in, maybe due to static
Frank> objects initialization code, even if there is no C++ code.
That's how GCC work on AIX because otherwise the AIX linker may
garbage collect functions used by static initializers. Do not place
unreferenced C++ functions in an archive on AIX.
David