Linker can't resolve any references

Ian Lance Taylor
Wed Jun 23 16:49:00 GMT 2010

Bob Cowdery <> writes:

> I had read that and I was quite careful to ensure the correct order. I
> did a test with just two libraries where the second referenced the first
> and as in my follow-up message it didn't pull them in unless I made a
> call into each from my main code. It's like the symbol tables are messed
> up somehow.

If your main program has a call into the first library, and the object
required to satisfy that call has a call into the second library, then
the linker should certainly pull in the required object from the
second library.

Can you provide a small standalone example of the problem?


More information about the Gcc-help mailing list