Link Problems with gcc/g++ 3.1.1 on AIX 4.3.3

David Edelsohn dje@watson.ibm.com
Sat Aug 3 20:55:00 GMT 2002


>>>>> 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



More information about the Gcc-help mailing list