[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with partial linking

From: philipp . von . hartrott
Subject: Problem with partial linking
Date: 22 Jan 2007 09:37:54 -0800
User-agent: G2/1.0

Hello all,

I have to following scenario: I want to do an incremental link through
g++ in order to have all dependant libs found:
$ g++-4.1.1 -c bla.c
$ g++-4.1.1 -Wl,-r -o rebla.o bla.o
cannot find -lgcc_s

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

Also, libgcc_s is present on the system:
$ ls /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/*

Why is the relinking through g++ failing?

Help is very apreciated!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]