This is the mail archive of the gcc@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]

Re: -frepo not working?


In message <98Dec16.141926est.26886@gateway.bristol.com> you write:
> Lee Iverson wrote:
> 
> >
> > Bzzzt...  Close but...  -frepo is a *linker* command.  Try adding it
> > to the second line 'g++ -frepo -o repo-fail repo-fail.o'
> 
> Umm...No.
> This problem still exists if you add -frepo to the link line as well.
> 

Perhaps I was a bit terse.  After compiling with -frepo -c, you must
then provide -frepo to the *linker* line as well:

% g++ -c -frepo repo-fail.cc
% g++ -frepo -o repo-fail repo-fail.o
collect: recompiling repo-fail.cc
collect: relinking
ld: WARNING 84: /usr/lib/libm.so is not used for resolving any symbol.
ld: WARNING 84: /opt/gnu/gcc/egcs-o32/lib/gcc-lib/mips-sgi-irix5/egcs-2.92.21/libgcc.a is not used for resolving any symbol.
ld: WARNING 84: /usr/lib/libm.so is not used for resolving any symbol.
ld: WARNING 84: /opt/gnu/gcc/egcs-o32/lib/gcc-lib/mips-sgi-irix5/egcs-2.92.21/libgcc.a is not used for resolving any symbol.
% 

Notice the collect: lines!  That is -frepo working.

-------------------------------------------------------------------------------
Lee Iverson     		SRI International
leei@ai.sri.com			333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/	(650) 859-3307


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