This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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


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


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