This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

RE: actually, it's less (was RE: build more-or-less successful)



+ > are missing symbols when a link as attempted that uses the 
+ library.  With
+ > the same EGCS snapshot (19990502) using v3 and -static, I get
+ 
+ Fixed. 


I rebuilt the library (--with-gnu-ld --disable-shared) and the little code I
was working on now links and runs correctly with -O2, but not with -O3.
Apparently too much stuff is getting inlined away:

	% g++ ...the usual lib3 stuff... -O3 foo.cc -o foo
	/tmp/ccCyoaaa.o(.ctors+0x0): undefined reference to `global 
	constructors keyed to main'
	/tmp/ccCyoaaa.o(.dtors+0x0): undefined reference to `global 
	destructors keyed to main'
	collect2: ld returned 1 exit status
	% 

Still working to determine what it is that's missing (i.e., whether it's in
my code or in a lib3 header).


Phil
(I need to find some way to tell MS-Outlost to drop duplicate messages from
being cc'd on the list... there's my next challenge)


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