4

"linker input file unused because linking not done"

view full story
linux-howto

http://www.linuxforums.org – Hi, I get the following error: "linker input file unused because linking not done" When executing the following: 1) g++ -c -fPIC -Wall ${CFLAGS} ${INCLUDES} ${LDFLAGS} a.cpp I am trying to create an object file that is linked statically linked to libraries in a 3rd party library, so that I can later execute the command: 2) gcc -shared -Wl,-soname,libA.so.1 -o libA.so.1.0.1 a.o As it is, when I run 'nm' on libA.so.1, I can see that the functions that are defined with the libraries I "linked" with above have a big 'U' symbol next to them, meaning they are unresolved. If the linking worked in step #1, I think they would be resolved here. However, as it is they are not. I must be missing a fundamental step, or am I supposed to link to the library in step #2 and not #1? (HowTos)