Can I get a report of ALL the libraries linked when building my C++ executable (gcc)? (including statically linked)
I had similar problem and found solution: add -Wl,–verbose option when linking. It will switch linker to verbose mode: gcc -o test main.o -ltest -L. -Wl,–verbose Here is example output: GNU ld (GNU Binutils) 2.23.52.20130604 Supported emulations: i386pep i386pe using internal linker script: ================================================== /* Default linker script, for normal executables */ [many lines here] … Read more