0How can I see what libraries are linked in an executable?
0How can I see what symbols are defined by compiled code?
nm executable (If this does not work, symbol table may be stripped. Try objdump -T executable.)
nm -D shared_library
0How can I determine if a library is 32-bit or 64-bit?
objdump -a <libname>
0What are the contents of a static library (*.a)?
ar -vt <static_library>
0What if the program compiles but then complains that a library cannot be found?
- Even though you add the library path at compile time with -L options, your software will not know about the directories at runtime (apparently).
- You need to change the run path and the above is the only way I know how. There is talk of option -rpath to ld, but I have not gotten it to work.