D
Dave Joseph
I'm trying to link with a static library and keep getting undefined
references to symbols that are defined in the library. The library is
called libmwunit.a and is located in /app/tp/mw/lib, I'm using the
following link step:
g++ -o target -static -L/app/tp/mw/lib -lmwunit TestConsumer.o
TestApp.o
TestApp.o and TestConsumer.o are part of my test harness and target is
the executable I am trying to produce. I have extracted objects from
the archive to check that the symbols exist – they do – and I can link
directly with them. I've also tried various other combinations of
ordering for libraries objects with and without the static specifier.
Some of the unresolved linkage errors are marked as [in-charge] others
as [not in-charge], I don't know what this means.
I am using gcc 3.2.1 and ld 2.11.90.0.8
references to symbols that are defined in the library. The library is
called libmwunit.a and is located in /app/tp/mw/lib, I'm using the
following link step:
g++ -o target -static -L/app/tp/mw/lib -lmwunit TestConsumer.o
TestApp.o
TestApp.o and TestConsumer.o are part of my test harness and target is
the executable I am trying to produce. I have extracted objects from
the archive to check that the symbols exist – they do – and I can link
directly with them. I've also tried various other combinations of
ordering for libraries objects with and without the static specifier.
Some of the unresolved linkage errors are marked as [in-charge] others
as [not in-charge], I don't know what this means.
I am using gcc 3.2.1 and ld 2.11.90.0.8