[EMAIL PROTECTED] writes:

> If I use ld directly it works fine:
> $ ld -r -o rebla.o bla.o

This is about the only case when you *should* use 'ld' directly.

> Why is the relinking through g++ failing?

Because g++ is not aware that you are doing partial link -- it
doesn't examine -Wl,... args, it just passes them on to the linker.

So, as far as g++ can tell, you are doing *regular* link, and so
it adds startup objects and support libraries (neither of which
you actually want in that link).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to