-frepo not working?
Lee Iverson
leei@ai.sri.com
Wed Dec 16 13:48:00 GMT 1998
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
More information about the Gcc-bugs
mailing list